📜  par o inpar python 代码示例

📅  最后修改于: 2022-03-11 14:45:03.881000             🧑  作者: Mango

代码示例1
#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")