Taiyo's Jupyter Post
- "My First Jupyter Notebook"
- This is my Jupyter Notebook
- Printing Hello!!!
- Calculating area of a triangle using Python!!!
"JUPYTER!!"
print("hello")
variable = "Coding is fun"
print(variable)
a = int(input("A Value"))
b = int(input("B Value"))
c = int(input("C Value"))
# Uncomment below to take inputs from the user
# a = float(input('Enter first side: '))
# b = float(input('Enter second side: '))
# c = float(input('Enter third side: '))
# calculate the semi-perimeter
s = (a + b + c) / 2
# calculate the area
area = (s*(s-a)*(s-b)*(s-c)) ** 0.5
print('The area of the triangle is %0.2f' %area)