1/5
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No study sessions yet.
boolean
basic python type. there are only two possible values: True and False. notice the capitalization
comparisons
== equal to
! = not equal to
in operator
looks to see if an item is a member of a sequence
truthiness and falsy
falsy: none, 0, empty
truthy: everything else
if elif conditionals
if test:
code if True
elif test 2:
code if True
code must be indented, else and if must be same level of indentation
generating random numbers
must be imported
import random
random.randint(2,4)