P15
Sat 18 April 2026
nums = [1, 2, 3, 4]
result = 1
for i in nums:
result *= i
print("Result =", result)
Result = 24
num = int(input("Enter number: "))
if num % 10 == 5:
print("Ends with 5")
else:
print("Does not end with 5")
Enter number: 7
Does not end with 5
text = input("Enter text: ")
for ch in text:
print(ch)
Enter text: 4
4
Score: 0
Category: misc