0% found this document useful (0 votes)
14 views5 pages

Exp 2

The document describes a student's experiment on disruptive technology. It includes the aim, tools used, concepts, code, observations, results, and learning outcomes. The student wrote programs to print their name, add numbers, concatenate strings, and find the max of three numbers by taking input from the user.

Uploaded by

Aman kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views5 pages

Exp 2

The document describes a student's experiment on disruptive technology. It includes the aim, tools used, concepts, code, observations, results, and learning outcomes. The student wrote programs to print their name, add numbers, concatenate strings, and find the max of three numbers by taking input from the user.

Uploaded by

Aman kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

University Institute of Engineering

Department of Computer Science & Engineering

Experiment: 1

Student Name: Aman kumar


UID: 23BCS12300
Branch: Computer Science & Engineering
Section/Group:403-B
Semester: 1ST
Date of Performance:27/08/2023
Subject Name: Disruptive Technology Subject
Code: 22ECH-102

1. Aim of the practical:


Task 1: Write a program to print your name two types.

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.

2. Tool Used: Google Colaboraty

2. Basic Concept/ Command Description:


University Institute of Engineering
Department of Computer Science & Engineering

• The print() function prints the specific message to the screen, other standard output
devices.

• The input() functions allows to take input.

• 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.

4. Code: Task 1 : val=input("Enter your name:


")
print(val) print(val)

Task 2 : a=input("Enter the first number: ")


b=input("Enter the second number: ")
c=input("Enter the third number: ") sum =
int(a)+ int(b)+
int(c) print(sum)

Task 3 : a=input("Enter the 1st string: ")


b=input("Enter the 2nd string: ")
c=input("Enter the 3rd string: ")
print(a+b+c)

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)

5. Observations, Simulation Screen Shots and Discussions:


University Institute of Engineering
Department of Computer Science & Engineering
University Institute of Engineering
Department of Computer Science & Engineering

6. Result and Summary: All codes run successfully.

7. Learning outcomes (What I have learned):

1. I learned how to use Python

2. I learned how to use Google Colaboraty

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

Signature of Faculty (with Date): Total Marks Obtained: 30


University Institute of Engineering
Department of Computer Science & Engineering

You might also like