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
Write a Python program to calculate the sum of three given numbers. If the values are equal, return three times their sum.
Write a Python program to count the number 4 in a given list.
Write a Python program that calculates the area of a circle based on the radius entered by the user.
Write a Python program that accepts a sequence of comma-separated numbers from the user and generates a list and a tuple of those numbers.
Print out a set containing all the colors from a list which are not present in other list