#################### ## Basic Commands ## ## and debugging ## #################### ## Def. Debugging: # Identify and remove errors (from computer hardware or software) # You already came across one command: 'print()'. This outputs / prints something to the commandline # Here are a couple more basic and important commands: # ## input() # requires textinput from the user # eg: a = input("enter something for a:") # ## print() # outputs / prints something to the commandline # eg: print(a) # ## str() # converts another variable-type (for example integer) to a string (text) # eg: b = str(1) # ## int() # converts another variable-type (for example string) to an integer (number) # eg: c = int('1') # ## len() # gets the length of a variable # eg: d = len("length") # this will be 6 # Task1: Get the age of the user and insert it into a variable called 'age_in'. # Task2: Convert 'age_in' to an integer and name the variable containing the int 'age' # # Task3 (debugging): Place the following lines of code (without '#>>>') at the end of your program and find and remove the error: #>>> text_out = "You are " + age + " years old" #>>> print(text_out)