Welcome To Programming Club!
Welcome To Programming Club!
PROGRAMMING CLUB!
Beginning.
Print Statement
Type the following into IDLE:
print(Hello World!)
print(Hello Again)
print(I like typing this.)
print(This is fun)
print(Yay! Printing.)
print(Id much rather you not.)
print(I said do not touch this.)
COMMENTS
Create a comment in your code by using the octothorpe (otherwise known as the hash sign)
Type this into your program:
#A
#A print
print statement
statement is
is used
used to
to output
output a
a message
message
to
to the
the user
user
STUDY DRILL
Type three more print statements out:
- two of these should be correct
grammatically
-one of these should be incorrect
grammatically (i.e. use a capital letter for
print or have no speech marks, etc.)
Why do I have
to read code
backward?
PEMDAS
print(3 + 2 + 1 5 + 4 % 2 1 / 4 + 6)
print(Is it true that 3 + 2 < 5 7?)
Parenthesis
print(3 + 2 < 5 7)
(brackets)
print(Is is greater?, 5 > -2)
Exponents (powers)
Multiplication/Divisi
print(Is is greater or equal?, 5 ?=
-2)
on
print(Is it less or equal?, 5 <= -2)
Addition/Subtractio
INVESTIGATE:
What is the difference
between:
10 % 6 * 2
2 * 10 % 6