#2
sum = 0
for i in range(1, 101):
sum += i
print(sum)
##########
#3
a = 1
b = 5
c = 1
if a == b or a == c or b == c:
print("yes")
else:
print("ERROR")
#4
a = 5
b = 2
c = 3
if a + b == c or a + c == b or c + b == a:
#5
for i in range(1, 498):
if i % 2 == 0:
print(i, end = " ")
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#2
sum = 0
for i in range(1, 101):
sum += i
print(sum)
##########
#3
a = 1
b = 5
c = 1
if a == b or a == c or b == c:
print("yes")
else:
print("ERROR")
##########
#4
a = 5
b = 2
c = 3
if a + b == c or a + c == b or c + b == a:
print("yes")
##########
#5
for i in range(1, 498):
if i % 2 == 0:
print(i, end = " ")
##########