Print out the odd numbers between 1 and 20 by checking if the number is even before printing in Python

Try using Conditionals and Loops to solve this problem

1 answer

  • answered 2021-09-11 18:18 ph140

    def dist_frm_zero(a):
        if isinstance(a, float) or isinstance(a, int):
            return abs(a)
        else:
            print('not possible')
    

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum