Kids Who Code
Georgia Tech Girls Who Code
Who is GT Girls Who Code?
We are a student-run organization at Georgia Institute of Technology in Atlanta. Our goal is to teach younger students about coding and computer science!
Importance of Computer Science
3
OVERVIEW OF GIRLS WHO CODE
4
OUR MISSION
Girls Who Code works to inspire, educate, and equip girls with the computing skills needed to pursue 21st century opportunities.
Our vision is to reach gender parity in computing and technology sectors.
We seek to reverse the decline by providing computer science classes for all students in middle and high school.
Why did we choose STEM?
What is STEM?
Science, Technology, Engineering, Mathematics
What is Computer Science?
7
How would you move from A to B?
Where do you see computer science in your life?
Intro to Python
GT Girls Who Code, 2021-22
What is a Program?
What is Python?
11
Variables & Data Types
How would I represent the price of my movie ticket?
How would I represent whether it’s raining today?
How would I represent the number of students in this room?
How would I represent the title of a book?
→ float
→ bool
→ int
→ str
Input / Output
You try! Go to https://replit.com/languages/python3
Assignment Operator
?
Variable
numUmbrellas = 3
Update the variable!
numUmbrellas = 4
“numUmbrellas” is a better variable name than, say, “x”
You can convert between types!
TYPE CONVERSIONS
3.0 ← float(3)
INT
str(4.99) → ‘4.99’
FLOAT
STR
int(3.56) → 3
46.0 ← float(‘46’)
‘-72’ ← str(-72)
int(‘34’) → 34
Note that float(‘integer’) will return a float! Think of it as two implicit conversions
Note that the string value passed into int() must be an integer! A float will not work, i.e. int(‘34.0’) will fail.
Mathematical Operation
Remember PEMDAS?
Parentheses > Exponent > Multiplication = Division = Modulo > Addition = Subtraction
Arithmetic Operators:
Operation | Symbol | Example |
Addition | + | >> 1 + 12 13 |
Subtraction | - | >> 3 - 2 1 |
Multiplication | * | >> 2 * 3 6 |
Integer Division | // | >> 10 // 3 3 |
Float Division | / | >> 10 / 2 5.0 |
Power | ** | >> 2 ** 3 8 |
Modulo | % | >> 5 % 2 1 |
String Concatenation
You can join strings using +
However, it can only be strings!
You can use type conversion to convert integers and floats to strings
can only concatenate str
Kahoot!
Project: Mad Libs Generator!
Mad Libs is a fun, educational game that takes in user input to fill the blanks in a story! The results can be wacky, silly, or downright absurd.
How Does Mad Libs Work?
It’s a fill-in-the-blank story where the user chooses what goes in the blanks…without knowing the story!
Example:
The _____ ______ jumped over the _____.
The user is asked to give an adjective, a noun, and a noun. The user does not see the sentence. S/he selects “obvious”, “retainer”, and “heater.”
The obvious retainer jumped over the heater.
adj.
n.
n.
What is input()?
A great way to get user input!
print(input(“Name: ”))
→ this will ask the user to type their name
What goes in the parentheses is the prompt!
MAD LIBS ENTITIES!
Noun
Adjective
Verb
Verb ending in -ing
Adverb
Name
Place
Thing
Food
Price
Exclamation
Part of the body
Requirements for Project
Wow that was fun! What now?
Computer Science Resources
High School Clubs!
There will be more clubs and activities you can join outside of class once you get to high school. Explore them! Try out different ones and see what you like.
If you can’t find a club that does what you enjoy, go ahead and start your own! All it takes is one person to get things rolling :)
Thank you!