Copy and paste the code below into your compiler and fix it.
Two types of errors
Syntax - errors with spelling, brackets and quotations
Logical - there is an error with the logical thinking of the program - maybe it should be > instead of <
Activity 1
#debug the code below
teacher = "Mr Bob Smith
year_levels = 8
print ("Hi, my name is"+ teacher and I teach year + " + year_level")
Activity 2
#code not working
num1 = input("Enter a number")
num2 = input("Enter a number")
ans = num1 + num1
print("The answer is " + ans)
Activity 3
#not working properly - wont compile
temp = 38
forecast = 39
print("is the actual temprature the same as the forecast for today?")
if temp = forecast
print("Its the same")
else
print ("The temp is not the same")
Activity 4
#code not working - we want it to print 1 - 10
count = 0
max = 10
while count > Max
print(count)
String and Math Operations - https://pythonschool.net/basics/string-operation-and-math-unit-exercises/
Selection (if Statements) - https://pythonschool.net/basics/selection-exercises/
Formatting Strings and Iteration - https://pythonschool.net/basics/iteration-exercises/