which of the following is input function
Answers
Answered by
1
Answer:
See the example below.
# Python input() function example.
# Calling function.
val = input("Enter an integer: ")
# Displaying result.
val = int(val) # casting into string.
sqr = (val*val) # getting square.
print("Square of the value:",sqr)
Similar questions