<jupyter_start><jupyter_text><jupyter_code>#Write a python program that converts the temperature Celcius to Fahrenheit. Create a class name Temperature.
#Create Celcius as attribute name. Temp() as method, and temp1 as object name. F=1.8xC + 32

class Temperature:

  def __init__(self,Celcius):
    self.Celcius = Celcius

  def Temp(self):
    return ((1.8 * self.Celcius)+ 32)

  def display(self):
    print("Temperature in Fahrenheit:", round(self.Temp(),2))

temp1 = Temperature(37)

print("Temperature in Celcius:", temp1.Celcius)
temp1.display()
# Define an Area() method of the class that calculates the circle’s area 
# Area = 3.14 x r^2

class Circle:                     #Circle as class name

  def __init__(self, radius):     #radius as attribute
    self.radius = radius

  def Area(self):                 #Area() as method
    return (3.14 * (self.radius * self.radius))

  def display(self):
    print("The area of the circle is",self.Area())

circle = Circle(4)                #circle as object name

print("radius =",circle.radius)
circle.display()
#Define a Perimeter() method of the class which allows you to calculate the perimeter of the circle.
#Perimeter/Circumference = 2 x 3.14 x radius

class Circle:                     #Circle as class name

  def __init__(self, radius):     #radius as attribute
    self.radius = radius

  def Perimeter(self):            #Perimeter() as method
    return (2 * 3.14 * self.radius)

input_perimeter = float(input("Input radius: "))
circle = Circle(input_perimeter)  #circle as object name
print("Perimeter of the circle is",round(circle.Perimeter(),2))<jupyter_output>Input radius: 4
Perimeter of the circle is 25.12
{'fraction_non_alphanumeric': 0.10535714285714286, 'fraction_numerical': 0.022023809523809525, 'mean_word_length': 3.4120734908136483, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '72511', 'license': 'Apache-2.0', 'n_tokens_mistral': 540, 'n_tokens_neox': 508, 'n_words': 180, 'path': 'Activity_2.ipynb', 'repo_name': 'janvincentvallente/OOP-1-2', 'size': '1680'}