P14
Sat 18 April 2026
text = input("Enter text: ")
if text == "":
print("Empty string")
else:
print("Not empty")
Enter text: 54
Not empty
text = input("Enter text: ")
count = 0
for i in text:
if i == " ":
count += 1
print("Spaces:", count)
Enter text: 54
Spaces: 0
nums = [10, 2, 30, 4]
print("Min =", min(nums))
Min = 2
Score: 0
Category: misc