Exp 2
Exp 2
Experiment: 1
Task 2: Write a program to add three numbers, inputs from a user, and print the result.
Task 3: Write a program to concatenate three strings, inputs from the user, and print.
Task 4: Write a program to find the max among three numbers and input from the user.
• The print() function prints the specific message to the screen, other standard output
devices.
• Two strings can be concatenated in Python by simple using the ‘+’ operator
between them. More than two strings can be concatenated using ‘+’ operator.
• The max () function returns the item with the highest value.
Task 4 :
a=input("Enter the first number: ") b=input("Enter
the second number: ") c=input("Enter the third number:
")
max_val = max(a, b, c) print(max_val)
Evaluation Grid:
Sr. Parameters Marks Obtained Maximum Marks
No.
1. Student Performance 12
(Conduct of experiment)
2. Viva Voce 10
3. Submission of Work Sheet (Record) 8