Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python menentukan genap ganjil

x = int(input("Silakan masukkan angka: "))
if (x % 2) == 0:
    print(str(x)+ " adalah angka genap")
else:
    print(str(x)+ " adalah angka ganjil")
Comment

PREVIOUS NEXT
Code Example
Python :: numpy sum 
Python :: printed in a comma-separated sequence on a single line. 
Python :: python serial COM3 
Python :: python select from list by boolean list 
Python :: How to change application icon of pygame 
Python :: pascal triangle 
Python :: how to encode a string in python 
Python :: base64 python 
Python :: python take input without displaying it 
Python :: numpy filter based on value 
Python :: get python ssl certificate location 
Python :: bar chart in python 
Python :: length of dictionary python 
Python :: root mean squared error in machine learning formula 
Python :: python for loop float increment 
Python :: how to pass csrf token in post request django 
Python :: input check in pygame 
Python :: how to pass primary key to url django 
Python :: python remove multiple element from list by index 
Python :: create a list of pandas index 
Python :: threading in python 
Python :: installing intel-numpy 
Python :: how to check whether input is string or not 
Python :: python get ids from array of objects 
Python :: pass integer by reference in Python 
Python :: importing time and sleep. python 
Python :: python open file location 
Python :: keras.datasets no module 
Python :: pyfiglet not coming up 
Python :: python startswith method 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =