+ 1
Help-me in this Python code
Why this code isn't printing 1 to 99 and 99 to 1? https://code.sololearn.com/c6PW35WGpwId/?ref=app
3 Answers
+ 1
Amazing! Now it's working! Thank you very much :3
0
When i'm calling the method "num_rev.reverse()" it's reversing "num" as well.
0
So... It's like i'm giving a nickname to num, not creating a new object, right?
How do i copy num to a new object called num_rev?