+ 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)
3 ответов
+ 1
print(f"Converted number is:{num}")
Or use
print("Converted number is:" + str(num))
+ 1
Tq bro 😇
0
You're welcome..