Professional Documents
Culture Documents
Archita 1
Archita 1
Experiment: 1
Student Name: Archita Srivastava UID:23BCS12459
Branch: Computer Science & Engineering Section/Group: 202 A
Subject Name: Disruptive Technology Subject Code: 23ECH-102
DateofPerformance:29 AUGUEST 2023 Semester:1ST
1. Aim of the practical: : To perform basic programs using Arithmetic operators and strings in python
4. Code:
1.1 Print hello world and name
print("Hello World")
OUTPUT
Hello World
University Institute of Engineering
Department of Computer Science & Engineering
NAME: Harpreet Singh UID:23BCS10559 CLASS:202A
1.2.2
a=10 200
b=200
a b
1.2.3
b=200
b
University Institute of Engineering
Department of Computer Science & Engineering
NAME: Harpreet Singh UID:23BCS10559 CLASS:202A
1.2.5 OUTPUT
a=10
b=200
print("a=",a)
print("b=",b)
print(b)
print(a)
a= 10
b= 200
200
10
1.2.6
#INDUTATION ERROR
a=20
print(a)
a=20
print(a)
File "<ipython-input-13-cd337a211c0a>", line 4
print(a )
^
IndentationError: unexpected indent
University Institute of Engineering
Department of Computer Science & Engineering
NAME: Harpreet Singh UID:23BCS10559 CLASS:202A
10 % 3 = 1
10 ** 3 = 1000
University Institute of Engineering
Department of Computer Science & Engineering
NAME: Harpreet Singh UID:23BCS10559 CLASS:202A
5
2
c=2
print(a<<b)
print(a<<c)
2
4
a=10 a/=20
print("a/=20",a)
a/=20 0.5
University Institute of Engineering
Department of Computer Science & Engineering
NAME: Harpreet Singh UID:23BCS10559 CLASS:202A
a=10 a//=20
print("a//=20",a) a//=20 0
accepted
University Institute of Engineering
Department of Computer Science & Engineering
NAME: Harpreet Singh UID:23BCS10559 CLASS:202A
1.11 Is Not
a=10 b=20
print("\"a is a -->\"",a is a )
print("a is b -->",a is b ) print("")
print("a is not a -->",a is not a ) print("a
is not b -->",a is not b )
OUTCOME
University Institute of Engineering
Department of Computer Science & Engineering
NAME: Harpreet Singh UID:23BCS10559 CLASS:202A
OUTCOME
10 in a --> True
40 is a --> False
100 is a --> True
1
2
3
4
University Institute of Engineering
Department of Computer Science & Engineering
NAME: Harpreet Singh UID:23BCS10559 CLASS:202A
5
6
7
8
9
10
3
2
1
0
6. Result and Summary: I have learned about the basic syntax for Python, how to declare a variable, use different
types of operators like assignment operators, bitwise logical operators, and assignment operators. Moreover,
if else, while loop and importing library
University Institute of Engineering
Department of Computer Science & Engineering
NAME: Harpreet Singh UID:23BCS10559 CLASS:202A
2. Variable Declaration: I was able to declare variablesin Python, understanding the concept of
assigning a value to a variable and the role it plays in storing and manipulating data.
3. Operator Usage: I was able to differentiate and apply different types of operators in Python, including
assignment operators to modify variable values, bitwise and logical operators for performing bitwise
operations and logical evaluations.
4. . Logical Expression Handling: I was able to gain proficiency in utilizing logical expressions
involving variables and operators, allowing us to make decisions and perform computations based on condition
5. Import Of Library: I was able to import mathlibrary and used it for various math formaulas
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