Example #1
0
import tempconv
temp = 212
convTemp = tempconv.ftoc(temp)
print('The converted temp is ' + str(convTemp))
temp = 0
convTemp = tempconv.ctof(temp)
print('The converted temp is ' + str(convTemp))
Example #2
0
from tempconv import ctof
from tempconv import ftoc
temp = 212
convTemp = ftoc(temp)
print('The converted temp is ' + str(convTemp))
temp = 0
convTemp = ctof(temp)
print('The converted temp is ' + str(convTemp))

import hinh
s1 = hinh.Shape(4, 8)
print(s1)
r1 = hinh.Rectangle(5, 10, 6, 9)
print(r1)
Example #3
0


# imports all the required functions from that  (tempconv module)

import tempconv

print(tempconv.ftoc(109))
print(tempconv.ctof(45))

# here prefix of function name is needed
# to make a function call
Example #4
0
# Method 1		
import tempconv		
temp = 212		
convTemp = tempconv.ftoc(temp)		
print("The converted temp is " + str(convTemp))		
temp = 0		
conVTemp = tempconv.ctof(temp)		
print("The converted temp is " + str(conVTemp))		
		
# Method 2
from tempconv import ctof		
from tempconv import ftoc		
		
temp = 212		
convTemp = ftoc(temp)		
print("The converted temp is " + str(convTemp))		
temp = 0		
conVTemp = ctof(temp)		
print("The converted temp is " + str(conVTemp))	

#################################################
#import Shape		
from f_shape import Shape
from f_shape import Rectangle
s1 = Shape(4,8)
print(s1)
r1= Rectangle(5,10,6,8)
print(r1)
Example #5
0
import tempconv
c=int(input("Enter the degree of Celcius temperature : "))
d=tempconv.ctof(c)
f=int(input("Enter the degree of Fahrenheit temperature : "))
g=tempconv.ftoc(f)
print(c,"celcius temperature 
= ",d,"Fahrenheit")
print(f,"fahrenheit temperature = ",g,"Celcius")
from tempconv import ctof
from tempconv import ftoc

temp = 212
convTemp = ftoc (temp)
print ("the converted temp is" + str(convTemp))
temp = 0
convTemp = ctof(temp)
print ("the converted temp is" + str(convTemp))

#import shapes 

#s1 = shapes.Shape(4,8)
#print(s1)
#r1 = shapes.Rectangle(5,10,6,8)
#print(r1)
Example #7
0
#Import Files
import tempconv

temp = 212
convTemp = tempconv.ftoc(temp)
print(str(temp) + " F equals is " + str(convTemp) + " C")

temp = 0
convTemp = tempconv.ctof(temp)
print(str(temp) + " C equals is " + str(convTemp) + " F")

#Import Shapes specific notation
#import shapes
from shapes import Shape
from shapes import Rectangle

s1 = Shape(4,8)
print(s1)

r1 = Rectangle(5, 10, 6, 8)
print(r1)