─=≡Σ((( つ•̀ω•́)つ CS Bootcamp 2020

Day 1

Packages

Method 1 example

import math
math.sqrt(x)

Method 2 example

# if you want to import one function
from math import sqrt
sqrt(x)
# if you want to import all functions from a library
from math import *
sqrt (x)

Using IDLE

Variables

User Input

x = input("prompt")

Printing strings + variables together

print("string  " , variable , " string")
>>> string variable string

Homework

Find the most impressive Scratch/Minecraft computing project you've done before. Be ready to present this tomorrow.