Answers for "python & function input"

1

input function in python

a = input("Enter a number: ")
a = int(a) # Convert a to an Integer(if possible)
print(type(a))
Posted by: Guest on January-12-2022
1

function in the input function python

num = tuple(input("Enter number: "))
# output
print(num)
Posted by: Guest on March-25-2021

Python Answers by Framework

Browse Popular Code Answers by Language