+ 1

My o/p is crt i want the o/p without space in front of the o/p

num = int(input("Enter number : ")) num2 = 0 if num == 0: num2 = 1 while num > 0: rem = num % 10 if rem == 0: rem = 1 num = num//10 num2 = num2 * 10 + rem num = 0 while num2 > 0: r = num2 % 10 num = num * 10 + r num2 //= 10 print("Converted number is:", num)

14th Apr 2022, 12:59 PM
Rajeshwari. S
Rajeshwari. S - avatar
3 Respostas
+ 1
print(f"Converted number is:{num}") Or use print("Converted number is:" + str(num))
14th Apr 2022, 1:08 PM
Jayakrishna 🇮🇳
+ 1
Tq bro 😇
14th Apr 2022, 1:14 PM
Rajeshwari. S
Rajeshwari. S - avatar
0
You're welcome..
14th Apr 2022, 1:18 PM
Jayakrishna 🇮🇳