python Flashcards

1
Q

give an example of how to use python

A

name= “Alice”
age = 14

INPname = input (“whats your name”)
INPage= int (input (“whats your age”)
IF name== INPname:
print (“welcome”)
ELSE :
print (“incorrect”)
ELIF name = “Catarina”
print (“second user”)
ELSE :
print (“access denied”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly