Code:
a = int(input("Input an integer : "))
n1 = int( "%s" % a )
n2 = int( "%s%s" % (a,a) )
n3 = int( "%s%s%s" % (a,a,a) )
print (n1+n2+n3)
Output:
615
Code:
a = int(input("Input an integer : "))
n1 = int( "%s" % a )
n2 = int( "%s%s" % (a,a) )
n3 = int( "%s%s%s" % (a,a,a) )
print (n1+n2+n3)
Output:
615
Python program for Armstrong number
Write a Python program to get the the volume of a sphere with radius 6
Python Program to sort alphabetically the words form a string provided by the user
Return list by function in python
List to string conversion in python
Python program to find the largest of three numbers
Increment and decrement operator in python
Python program for implementation of Bubble Sort
Write a program to add two numbers in python