Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check input in python

# Program to check input 
# type in Python
  
num = input ("Enter number :")
print(num)
name1 = input("Enter name : ")
print(name1)
  
# Printing type of input value
print ("type of number", type(num))
print ("type of name", type(name1))
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #check #input #python
ADD COMMENT
Topic
Name
9+1 =