Answers for "par o inpar python"

1

par o inpar python

#Please visit my website: GarlokDev.com

number = input("\nInsert here the number: ")

print("\nYou have inserted: " + number)

f_number = number[-1]

par = [2, 4, 6, 8, 0]

if f_number in par:
        print("\n" + numeber + " is a pair number")
else:
        print("\n" + number + " is a odd number")
Posted by: Guest on September-18-2021

Python Answers by Framework

Browse Popular Code Answers by Language