« first day (18 days earlier)
← previous day
next day →
last day (946 days later) »
Aladdin
6:06 AM
@JohnRennie Hi
John Rennie
@Aladdin Hi :-)
Aladdin
I had a very small doubt
num = 10 for num in range(5): print(num) print(num)
i thought the final print statement will have num as 10
but it prints it as 5
John Rennie
No, because when you do
for num in range(5)
this sets
num
to 0, then 1, then 2 etc up to 4.
So it overwrites the original value of 10 that was in
num
.
Aladdin
oh
Catija
6:27 AM
→
14 messages
moved to
Trashcan
Apologies, y'all. Hopefully this is the end of it.
John Rennie
Thanks :-)
Catija
→
5 messages
moved to
Trashcan
« first day (18 days earlier)
← previous day
next day →
last day (946 days later) »
all rooms
Transcript for
Oct
13
Oct '21
15
Oct
18
Room for Aladdin and John Rennie
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2024 Stack Exchange Inc;
legal
mobile