1 of 30

Kids Who Code

Georgia Tech Girls Who Code

2 of 30

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!

3 of 30

Importance of Computer Science

  • National average salary for CS: $106,012
  • Demand for CS related jobs expected to grow 22% by 2030
  • Largest major (18%) at Georgia Tech
  • Currently, only 22% of computer scientists are women
    • This number has been steadily decreasing

3

4 of 30

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.

5 of 30

Why did we choose STEM?

6 of 30

What is STEM?

Science, Technology, Engineering, Mathematics

7 of 30

What is Computer Science?

  • Falls under technology
  • Coding and programming, but also logical thinking, problem solving, and creativity!

7

How would you move from A to B?

8 of 30

Where do you see computer science in your life?

9 of 30

Intro to Python

GT Girls Who Code, 2021-22

10 of 30

What is a Program?

  • Sequence of instructions that specifies how to perform a computation
    • Input / Output
    • Math
    • Conditional execution
    • Repetition

11 of 30

What is Python?

  • High-level (easy-to-use) programming language
  • Numerous packages and extensive standard library
  • Easy to debug!
  • No need to compile

11

12 of 30

Variables & Data Types

  • integer
  • float
  • boolean
  • String

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

13 of 30

Input / Output

  • Let’s print “Hello World!”
  • To display output in Python, we use the word print
  • To take input, we use the word input

14 of 30

Assignment Operator

  • greeting = “Hello!”
  • n = 5
  • n = n + 1
    • What is the value of n now?

?

15 of 30

Variable

  • Variable: name that refers to a value
  • Naming rules:
  • Cannot have a space
  • Cannot begin with a number
  • Variable name should have meaning
  • Case matters! (uppercase or lowercase)

numUmbrellas = 3

Update the variable!

numUmbrellas = 4

“numUmbrellas” is a better variable name than, say, “x”

16 of 30

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.

17 of 30

18 of 30

Mathematical Operation

Remember PEMDAS?

Parentheses > Exponent > Multiplication = Division = Modulo > Addition = Subtraction

Arithmetic Operators:

  • Addition
  • Subtraction
  • Multiplication
  • Division – integer or float
  • Power
  • Modulo – takes the remainder!

19 of 30

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

20 of 30

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

21 of 30

Kahoot!

22 of 30

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.

23 of 30

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.

24 of 30

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!

25 of 30

MAD LIBS ENTITIES!

Noun

Adjective

Verb

Verb ending in -ing

Adverb

Name

Place

Thing

Food

Price

Exclamation

Part of the body

26 of 30

Requirements for Project

  • Program must have at least one
    • Variable
  • User input must require at least one
    • String
    • Float
    • Integer
  • Output must use at least one instance of
    • String concatenation
    • Type conversion (like from float to str, int to str)

27 of 30

Wow that was fun! What now?

28 of 30

Computer Science Resources

  • Code.org
  • Pluralsight has hundreds of hours of free content in its partnership with Code.org
  • HackerRank or CodePath.org has free coding challenges

29 of 30

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 :)

30 of 30

Thank you!