Python_Tasks_Monospaced
Python_Tasks_Monospaced
population = 100000
population *= 1.10
def is_prime(num):
if num < 2:
return False
if num % i == 0:
return False
return True
import random
attempts = 5
print("Guess a number between 1 and 100. You have 5 attempts.")
if guess == correct_number:
break
else:
attempts -= 1
if attempts == 0:
print(f"Sum = {result_sum}")
if number == number[::-1]:
else:
if len(number) == 3:
else:
while b:
a, b = b, a % b
return a