What are the two functions we learned?
Print and Input
What are the 4 variables we learned?
Integers, Float, String, Boolean
What are the 4 operators we learned? + additional points to anyone who remembers 2 more!
+, -, *, /
// and %
What does a print function do?
allows the coder to print anything needed
How do you store something in a variable?
with a "=" sign
What's the difference between / and //?
/ shows answers in float and // answers in integers
EG. 5/2 = 2.5 while 5//2 = 2
What does an input function do?
allow users to input their answers + store them into a variable
What does
animal = "dog"
do?
makes computer recognize animal as dog from now on (in their world, all "animal" is "dog" from now!)
3
What are some possible places you can find an error when using functions? (name more than 1 to win!)
*the first letter capitalized in print() and input()
*a quote opened but not closed
*a variable not assigned to input
+ anything else??
What's the difference between:
name = "Irene"
print(name)
VS
print(Irene)?
10%3 = ?
1