Debugging (fixing your code) is an important skill to develop. There are two types of errors that you will get when coding:
Syntax errors - these are the errors that include mistakes in the formatting and typing of code
Spelling errors
Missing brackets or quotation marks
Using different variable names
Not indenting correctly
Logical errors - this is where the code works and compiles, but doesn't work as planned. Its important to keep testing your program during the development of the code. Some strategies to resolve these types of errors include:
Printing variables out after each step to see if you can isolate the error
Testing different values
Commenting out lines of code to isolate an error
'''below is some code that is not working, please help
me fix the issues below'''
#not working
person = "ted"
age = 23
print "Hello my name is person and I am age years old"
#this is not working
title = "Mr"
surnname = "Smart"
teacherName = title + " " + surname
print(teacherName)
#not working properly
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")
#not working - want it to print 1 - 10
count = 0
max = 10
while count > Max
print(count)