Experiment 1 Python
Experiment 1 Python
Problem Statement1: : To develop a Python program that generates a personalized greeting based on
user input, enabling a better understanding of Python’s basic constructs and their comparison with
equivalent constructs in python
Design and implement a Python program that:
1. Prompts the user to enter their name and preferred greeting style.
2. Outputs a personalized greeting message using the input values.
Program:
1.
first_name = "Radha"
‘
Output:
Problem Statement 2: Calculating Areas of Geometric Figures* - Write a python program to calculate areas of
any geometric figures like circle, rectangle and triangle.
Program:
c = Radius*Radius*3.14
d = b*h*0.5
z = x*y
print("Area of reactangle:",z)
Output:
Conclusion: : Understood the basic programming constructs from C to Python by focusing on Python's syntax
and input/output functions.