You are on page 1of 4

Experiment no.

1
Student Name: Harwinder Singh UID: 20BSH7006

Branch: BSc. Chemistry Honours Section/Group: A

Semester: 2nd Semester Date of Performance: February 16,2021

Subject Name: Computer Programming For Scientists

Subject Code: M21E-20SPP-195_20BSH1_A

1. Aim: Familiarization with Python programming environment. Making small code snippet on
console and in the editor. Then write programs to utilize print and input commands to

understand the basic data types.

2. Algorithm/Flowchart (For programming based labs): These are the steps we need to focus on:
a) 1. Take the value of a.

2. Take the value of b.

3. Take the value of c.

4. Apply the print statement to print the value of a . [print(a)]

5. Apply the print statement to print the value of b. [print(b)]

6. Apply the print the statement to print the value of c. [print(c)]

7.Run the program.

b) # Specifying data type

1.Take different variables (say a , b , c , d , e , f , g and h) with values of different data types.

2.Apply the print the statement to print the variables.


3.Apply the type () statement or command to print the data type of variables.

4.Run the program .

3. Screenshots of codes and output: Below mentioned are the results of the codes using
idle:a) # variables

b)
#

Specifying data types


4. Result/Output and discussion: The result of the
following codes is as following;

a) We are getting the value of a and b in the result a = 5 ,


b = 6 and c=11.

b) We are getting the specific data types of various


variables when we run the program.

5. Learning outcomes (What I have learnt):


1. We come to know how to run a program using
the python.

2. This experiment helps in enhancing our


knowledge of python.

3. We have learnt how to use different variables in python.

4. We have learnt how to use specific data types.

Evaluation Grid (To be created as per the SOP and Assessment guidelines by the faculty):

Sr. No. Parameters Marks Obtained Maximum Marks


1.
2.
3.

You might also like