SVKM’s NMIMS University
Mukesh Patel School of Technology Management & Engineering
COURSE: Python Programming Lab Manual
Faculty: Prof. Leena Nadkar
BTI Sem III - Div B,C,D
Week - 1
Lab -1 - Part I
Lab Aim: Revision - FlowChart, Basic Programming Concepts, Python Installation
Task 1: (Estimated Time: 10 mins)
Make a team of 2-3 students and enter your team details in the shared sheet.
Same team should be maintained till the end of semester including for the mini project and
other group activities.
https://tinyurl.com/PythonTeams
Task 2: (Estimated Time: 60 mins)
Revise flowchart basics and draw flowchart for the problem statements mentioned
below:
Flowchart Basics:
Flowcharts graphically represent the flow of a program. There are four basic shapes used in a
flow chart. Each shape has a specific use:
oval: start / end parallelogram: input / output
rectangle: calculations diamond: selection structures
Arrows connect the basic shapes in a flowchart. The shapes and arrows of a flowchart
describe the flow of a program from start to end. Flowcharts typically flow from the top to
the bottom or flow from the left to the right.
SVKM’s NMIMS University
Mukesh Patel School of Technology Management & Engineering
COURSE: Python Programming Lab Manual
Faculty: Prof. Leena Nadkar
BTI Sem III - Div B,C,D
Draw Flowchart for following questions:
Note:
Flowcharts can be drawn in notebooks, scanned and uploaded in document OR following
software can be used https://app.diagrams.net
Direct Programs:
1. Program to Add Two Numbers
2. Program to Find the Square Root
3. Program to Calculate the Area of a Triangle
4. Program to Swap Two Variables
5. Program to Convert Celsius To Fahrenheit
6. Program to Check if a Number is Positive, Negative or 0
7. Program to Check if a Number is Odd or Even
8. Program to Find the Largest Among Three Numbers
9. Program to Check Prime Number
10. Program to Find the Factorial of a Number
11. Program to Display the multiplication Table
12. Program to Print the Fibonacci sequence
13. Program to Find the Sum of Natural Numbers
14. Program to Find the Factors of a Number
15. Program to Make a Simple Calculator
16. Program to Add Two Matrices
17. Program to Transpose a Matrix
18. Program to Multiply Two Matrices
Scenario based Programs:
1. Draw flowchart for : Playing snakes and ladders between two players
(Text in pink is dry run)
a. Start
b. Throw the dice: the number indicated by dice is 3.
c. Move the coin: through 3 blocks on the board.
d. Landed on snake head?: No.
e. Landed on the bottom of the ladder?: Yes (See the snakes and ladders
board given). Move up the ladder: reached block 14 on the board.
f. Reached the last block of the game?: No.
g. Give dice to the next player.
h. Enter the loop till the last block of the game is reached.
SVKM’s NMIMS University
Mukesh Patel School of Technology Management & Engineering
COURSE: Python Programming Lab Manual
Faculty: Prof. Leena Nadkar
BTI Sem III - Div B,C,D
i. End
2. There are four types of fruits Apples, Oranges, Bananas and Grapes. Each student can
pick up two fruits. There are some conditions which have to be used to pick up the
fruits. Draw a flow chart which can take the name of first fruit as an input and print
the names of second fruit or fruits that can be picked up. The conditions are:
a. If you pick an apple you can pick a banana.
b. If you pick oranges you can pick grapes.
c. If you pick grapes you can pick bananas.
Task 3: (Estimated Time: 15 mins)
Python Installation
Download Python from following link: https://www.python.org/downloads/
Download the latest version
Links for guidance:
Windows Installation https://www.youtube.com/watch?v=uDbDIhR76H4
https://www.youtube.com/watch?v=M323OL6K5v
Mac Installation
s
Ubuntu Installation https://www.youtube.com/watch?v=oQminl8ZAfA
Task 4: (Estimated Time: 10 mins)
Answer the following question in detail:
Why should you learn python in 2021? How can Python help you in career development?
Task 5: (Last half hour of Lab Session)
1. Teams will be selected randomly
2. Any student from team will be asked to share screen and explain to the batchmates
their solution for flowchart questions
3. Peers are expected to correct / give suggestions where necessary in the questions
4. It is expected that students parallely go on solving and uploading their solutions in
document and must present it when asked
5. Grading of this lab session (10 marks) will be done on basis of presentation given by
the team
Instructions:
1. Upload the document on portal when access is available
2. Naming convention: PP__Lab1_PartI_Week1_Div_RollNo