def myfun(): x = int(input("Input an integer: ")) n1 = int("%s" % x) n2 = int("%s%s" % (x, x)) n3 = int("%s%s%s" % (x, x, x)) print(n1 + n2 + n3) if __name__=="__main__": myfun()
Input an integer: 6 738
Apply For Job
Java Material
Python Material
PLSQL Material
.Net Material
Print out a set containing all the colors from a list which are not present in other list
Write a Python program to display the current date and time.
Write a Python program that calculates the area of a circle based on the radius entered by the user.
Write a Python program that prints the calendar for a given month and year.
Write a Python program to get n (non-negative integer) copies of the first 2 characters of a given string. Return n copies of the whole string if the length is less than 2.