Ad

Let's go networking! Follow me on LinkedIn and GitHub:
https://www.linkedin.com/in/dev-luan/
https://github.com/luangalvaoxD

Code
Diff
  • import random
    import time
    def not_even(n):
        pizza_time = time.ctime()
        'its not even', pizza_time if n % 2 == 0 else 'its still not even', pizza_time
        return pizza_time
    n = random.randint(0, 10000)
     
    print(not_even(n))
    • import random
    • import time
    • def not_even(n):
    • pizza_time = time.ctime()
    • if n % 2 == 0:
    • return 'its not even', pizza_time
    • else:
    • return 'its still not even', pizza_time
    • 'its not even', pizza_time if n % 2 == 0 else 'its still not even', pizza_time
    • return pizza_time
    • n = random.randint(0, 10000)
    • print(not_even(n))