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
0
Answer:
thanks for the free points
Answered by
1
Answer:
good evening....
........
Similar questions
Math,
3 months ago
Political Science,
6 months ago
English,
6 months ago
Math,
11 months ago
Math,
11 months ago