Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

input in python

#input or question, is used to ask question

ans = input('Who invented Microsoft?')

#An if statement

if(ans == 'Bill Gates'):
  print('You got the answer')
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #input #python
ADD COMMENT
Topic
Name
6+6 =