Answers for "how to use inputs in methods in pythong"

10

python how to use input

#basic user handling for begginers

x = input("your question here") # when someone types something here that answer will be saved and be used for later

# for example 
print(x)
Posted by: Guest on March-25-2020
1

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')
Posted by: Guest on November-07-2020

Code answers related to "how to use inputs in methods in pythong"

Python Answers by Framework

Browse Popular Code Answers by Language