Question: This is the Python code I have right now: counter = 0 number = int ( input ( ) ) for i in range (

This is the Python code I have right now:
counter =0
number = int(input())
for i in range(number):
num = int(input())
temp = num
num = int(input())
if (temp != num):
counter +=1
print(counter)
Why is it wrong?
 This is the Python code I have right now: counter =0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!