Lesson 17: Practice makes master

posted Feb 25, 2020, 8:05 AM by Attila Lengyel
a = int(input("Give me a number:"))
b = int(input("Give me an other:"))
print(a + b)

print("\n\n First 100 numbers")
num = []
for i in range(0,101):
num.append(i)
print(num)

print("\n\n\nEven numbers only:")
num.clear();
for i in range(0,101):
if i%2 == 0:
num.append(i)
print(num)

import turtle as t
bob = t.Turtle()
for i in range(0,4):
bob.forward(100)
bob.left(90)

Comments