Python Program - Reverse of a number in 4 lines | using while loop | Python Program | hems hema

preview_player
Показать описание
Write a Python program to reverse a user defined value, using while loop , Complete Explanation
#python #coding #reverse
Рекомендации по теме
Комментарии
Автор

omg hema mam, i just designed the exact program of urs but had bit of uncertainities how does it work ! this video was hella helpful thank you mam

sanciashalom
Автор

Instead of multiply by 10, we may use concatenation of digit from int to str i.e str(dig) .so we assume a last digit as first digit and so on, till the loop ends. This is slight as reverse string. What's your opinion.
And thankyou for this explanation 👍

rexrajan