Computer Science, asked by srinivasanstudy, 5 months ago

What is the error in the following code? Correct the code.

a="hai"

if a="hello"

print("welcome)

elif a="bye":

print("goodbye")

else

print("stay")

(b) What is following code doing? What would it print for input as 3?

n=int(input("Enter an integer"))

if n<1:

print("Invalid")

else:

for i in range(1,n+!):

print(i*i)​

Answers

Answered by Anonymous
0

Answer:

thanks for the free points

Answered by Anonymous
1

Answer:

good evening....

........

Similar questions