Code Em




Tech Em Studios

$whoami

✰ My name is Chris, or Mr. Chris, or alias Mr. Longhair

✰ I live in the city with my two cats, one fish, and little brother

✰ I've been working at Tech Em for 3 years! I spend my week teaching classes at the studio, and at different schools around Richmond. We also have some projects that we like to colloborate on, and work remotely!

✰ I love learning about the Internet, computer security, and other places, people around the world!

What is computing?

What is a computer?

Does a computer require electricity?

Tally Sticks

Tally Sticks

Can you take a guess at what people might of used these for?

We can call these a form of mechanical aid that helped people count before they actually had what we know today as computers!

Abacus

2700 BC - Present

The Chinese Bead Abacus

Pascal's Calculator

1642 - 1800s

The first Digital Mechanical Calculator

Invented by Thomas de Colmar in 1820

Who's this?

Ada Lovelace

The first computer programmer!

Computer Programmer?

Programming or Coding is the act of creating human readable computer instructions

1st Generation Computers: Electric Computers

The ENIAC, 1946, Electronic Numerical Integrator And Computer

17,468 vacuum tubes!!!

The ENIAC

Vacuum Tubes

2nd Generation Computers: Electric Computers

The IBM 1401, first made in 1959

10,000 transistors!

A Transistor!

Transistors are the building blocks of computers

At the most basic level transistors can be switches or amplifiers

Think of everything as being programmable
Every object that you place onto your Hopscotch scene starts with no code

Objective 1: Draw A Square

Can you write a list of instructions with the English language as to how you would tell someone else to draw a square?"

Objective 2: Draw A Star

Objective 3: Make it into a function?

Python

Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum and first released in 1991, Python has a design philosophy that emphasizes code readability, notably using significant whitespace. It provides constructs that enable clear programming on both small and large scales.

The Interpreter

So what can we do with this thing?



- Give it input, and it will give you output

- Try to add two numbers, you don't need to use spaces

                    
                        213432523 + 12929342010
                    
                

Press ENTER!

We can use it as a calculator! So cool, it adds numbers together.

Can it add letters, words?

                    
                        hello + hello
                    
                

Ooops! It has yelled at us! Let's take a closer look

Expressions

                    
                        hello + hello
                        10 + 10
                        12.4 + 15.7
                        good + bye
                        10 * 20
                    
                    

Statements

                        
                            a = 10 + 10
                            b = "my name is Chris"
                            print (a + b)

                        
                        

Variables

Think of it as a box, or place that we can store data.

Even different types of data

                    
                        a = 13
                        b = 27 
                        a + b

                        c = a + b

                        print(c)
                    
                
                    
                        c = hello + hello

                    
                

Data Types!

                    
                        a = 10
                        b = "hello"

                        type(a)
                        type(b)
                    
                

Python has 4 main data types that it uses

- String

- Integer

- Float

- Boolean

What is one thing(four in this case) that you should remember for next week?!?



YOUR DATA TYPES!