Beispiel #1
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)
Beispiel #2
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))
Beispiel #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
Beispiel #4
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)
Beispiel #6
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)