Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

programe to check if a is divisible

# to check if a is programedivisible by 3 or 5
a=int(input('enter first number'))
if a%3==0 and a%5==0:
     print('multiple of 3 and 5 ')#multiple of 15 in short
elif a%5==0 :
     print('multiple of 5')#if statement disturbes then passes to elif or else.
elif a%3==0 :
     print('multiple of 3')
else:
     print("'a' is not a multiple of 3 or 5 ")#this means a is not factor 3,5,15
Comment

PREVIOUS NEXT
Code Example
Python :: get wav file in dir 
Python :: python os is directory 
Python :: pair plot python 
Python :: tsv to csv python 
Python :: df select first n rows 
Python :: python beep 
Python :: python find all positions of element in list 
Python :: import csv file in python 
Python :: python accept user input 
Python :: dataframe index rename 
Python :: file path current directory python 
Python :: neat python full form 
Python :: python check if character before character in alphabet 
Python :: pandas series to list 
Python :: python rsi trading strategy 
Python :: python custom array sort 
Python :: row names pandas 
Python :: python console command 
Python :: do you have to qualift for mosp twice? 
Python :: empty dataframe 
Python :: python print list items vertically 
Python :: pandas combine two data frames with same index and same columns 
Python :: how to filter out all NaN values in pandas df 
Python :: how to send a message from google form to a python 
Python :: python requests get cookies 
Python :: django round 2 decimal 
Python :: Goal Parser Python 
Python :: how to create a custom callback function in keras while training the model 
Python :: write to file python 3 
Python :: python change base function 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =