For Lab 3 what i have learned was  sequential statements which are executed one  after the other in descending order. i had to write a program and input a number and display a message saying if the number is positive or negative.

the code i used was :

inputStr = input (‘Input a number: ‘)
number= int(inputStr)
if number<=0:
print (‘Invalid Number’)
else:
print (number)
while number!=1:
if number%2==0:
number=number//2
print (number)
else:
number=(number*3)+1
print (number)

print (‘End’)