for i in range(1, 10):
print(i)
i = 0
while n <= 5:
print(i)
i = i + 1
i = 0
for i in range(15):
a = i % 2
b = i % 3
if not a and not b:
print("Popty Ping!")
elif not a:
print("Pop!")
elif not b:
print("Ping!")
a = input("Int: ")
print(int(a)**0.5)
import math
print(format(math.pi, '.2f'))
import math
print(round(math.pi, 3))
char = "a"
charCode = ord(char)
They managed to get the chr code right...
from random import randint
x = randint(1, 10)
newInput = input("Int: ")
try:
int(newInput)
except:
print("Input Incorrect")
x, y = 17, 29
print("Largest number is: " + str(max(x,y))
def max(a, b):
if a > b:
return a
else:
return b
ans = str(square(int(input("Int: "))))
def square(a):
return a**2
b = 4
print(factorial(b))
def factorial(n):
if n == 0:
return 1
else:
return n * factorial(n-1)