Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Mixed Fractions in python

num = int(input('Type numerator'))
dem = int(input('Type denominator'))

a = num // dem
b = num % dem
print 'The mixed number is {} and {}/{}'.format(a, b, dem)
Comment

PREVIOUS NEXT
Code Example
Python :: how to add background and font color to widget in tkinter 
Python :: Parallel Tasks python 
Python :: how to open link in new tab selenium python 
Python :: read text file python path open 
Python :: how to create file organizer using python 
Python :: how to kill python process started by excel 
Python :: print something after sec python 
Python :: function TBone() if 2=2 then print("Sup") end 
Python :: Write a Python program to accept two strings as input and check if they are identical copy of each other or if the second string is a substring of the first string. 
Python :: Randome Word generator from consonant, vowel and specific string 
Python :: Convert the below Series to pandas datetime : DoB = pd.Series(["07Sep59","01Jan55","15Dec47","11Jul42"]) 
Python :: scikit learn split data set site:stackoverflow.com 
Python :: sys executable juypter is incorrect visual code 
Python :: gnome-terminal stopped executing after python 3.6 is installed 
Shell :: set git editor to vim 
Shell :: ubuntu restart sound 
Shell :: check nginx status 
Shell :: ubuntu pip3 
Shell :: ubuntu install gimp 
Shell :: conda install keras 
Shell :: remove all docker images 
Shell :: bash hide command output 
Shell :: how to flush dns on mac 
Shell :: wget adminer 
Shell :: ubuntu install vlc 
Shell :: beautifulsoup python 
Shell :: linux check cronjob log 
Shell :: vuejs sass Syntax Error: TypeError: this.getOptions is not a function 
Shell :: auth install laravel 8 
Shell :: install jsdoc 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =