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,
2 months ago
Social Sciences,
2 months ago
Science,
2 months ago
Political Science,
5 months ago
English,
5 months ago
Math,
10 months ago
Math,
10 months ago