Week - 1 Lab - 1 - Part I Lab Aim: Revision - Flowchart, Basic Programming Concepts, Python Installation Task 1
Week - 1 Lab - 1 - Part I Lab Aim: Revision - Flowchart, Basic Programming Concepts, Python Installation Task 1
Week - 1
Lab -1 - Part I
Lab Aim: Revision - FlowChart, Basic Programming Concepts, Python Installation
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:
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
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
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.
Instructions:
1. Upload the document on portal when access is available
2. Naming convention: PP__Lab1_PartI_Week1_Div_RollNo