Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

par o inpar python

#Please visit my website: GarlokDev.com

number = input("
Insert here the number: ")

print("
You have inserted: " + number)

f_number = number[-1]

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

if f_number in par:
        print("
" + numeber + " is a pair number")
else:
        print("
" + number + " is a odd number")

 
PREVIOUS NEXT
Tagged: #par #inpar #python
ADD COMMENT
Topic
Name
5+2 =