چو کشور نباشد تن من مباد
بر این بوم و بر زنده یک تن مباد
ز بهر بر و بوم و فرزند خویش
زن و کودک و خرد و پیوند خویش
همه سر به سر تن به کشتن دهیم
از آن به که میهن به دشمن دهیم
جهان جوی اگر کشته آید به نام
به از زنده، دشمن برو شاد کام
@clcoding x[1][1] = 9
Changinf 2nd row of 2nd item to 9 but as both list are same [1,1] that one change affect both so [1,9] [1,9]
The key is python didnt copy the inner list it reused it
@clcoding x = [[1]*2]*2
[1]*2 → [1, 1]
It just makes one list with two 1s
[[1,1]] * 2 → [[1,1], [1,1]]
looks like two separate rows, but it’s actually the SAME list i.e [1,1] used twice
So think of it like this:
row = [1,1]
x = [row, row]
X[0] and x[1] pointing to same memory.
@Suwaid_Alabkal@Alafasy تو که قران بدین نمط خوانی
ببری رونق مسلمانی
سعدی
و خداست میدانست از همین جهت آخرین پیامبر را به اعراب فرستاد اگر اینها رهنمود شدند همه انس��نها خواهند شد ولی متاسفانه دیده میشود که اینها فقط تماشاگر، شتر دوان و موتر های لکس و به عیاشی مشغول اند و درد هیچ انسانی درد اینها نیست
@ma36562@FoxNews Is it acceptable to generalize and assert that all individuals are identical if one person commits a crime? If no then please stop it and if yes killer of Charlie Kirk was not an Afghan and also the one who shot Trump was not an Afghan & yet no one said american did it
@naomiseibt@elonmusk you don't miss her? I know you become AFD fan cause of her 😂🤣 as you said the world population is less and we need more people 👨👩👧👦🌍
P.S: She is single and you know what I mean or for you it does not matter right? Remembering Amber heard Johnny depp's wife!!!
@mhaseeb_shahid @Wish_Zalmai @KhawajaMAsif Just a small reminder you and Asif stand every time for the national anthem that is in our language so who is father of who? By the way my father is older than pakistan PERIOD.