Skip to content

Commit 8678a21

Browse files
committed
added reversing no using py3
1 parent 7f7233c commit 8678a21

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

reverse_no_py3/revno.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
n=input("Enter a number:")
2+
l=list(n)
3+
l.reverse()
4+
n="".join(l)
5+
print(n)

0 commit comments

Comments
 (0)