Question: PYTHON HELP There's something wrong with this code. Identify the line where there is a Logic Error. We want to count and print the number
PYTHON HELP


There's something wrong with this code. Identify the line where there is a Logic Error. We want to count and print the number of occurrences of the letter "g" in the string stored by the variable word word- 'programming language. #Line 1 #Line Z #Line 3 #Line 4 count = count + 1 #Line 5 #Line 6 count = 1 for letter in word: ifletter= "g' : print (count) Line 3 O Line 2 O Line 5 O Line 6 Fill in the blanks for how you would format the print statement using the format operator (%) after the following code? school-year = 2 course INST126 GPA -3.9 print" I am in year , I have a GPA of and I am currently taking the programming class.", % (school-year, GPA, course)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
