









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










WEEK 1 โ Introduction to Algorithmic Thinking
WEEK 4 โ Computational Thinking
1+0=1, 0+1=1, 0+0=0, 1+1=
WEEK 6 โ Python Basics: Types & Expressions
mistakes can happen
def function_name(arguments): # Function Header
return value
else:
remove, use Decorators (@)
for x in grades: print(x) # loop variable, loop sequence, Body
second = 1 next = first + second count = 2 while count < t: 1st = 2nd 2nd = next
print(f"{:.2f}".format(number)) print("%.2f" % x) WEEK 12 โ Polynomials & Number Systems
import numpy as np coeff = [7, - 5, 2, 3] # xโฐ, xยน, xยฒ, xยณ order np.polyval(coeff, x) # Built-in
a[:] # entire list a[3:] # from index 3 to end a[x:y] # from x (included) to y (not included) a[-1] # last element a[-2] # second last element