You are on page 1of 8

ProCoders

Notes and
Assignment 1
What we learned?

• An IDE helps you to write a python


program and then run it, so that you
can see the result/output of the
program.
• Sequence is the correct order of doing
a task.
• An algorithm is the set of instructions
given in the correct order(sequence)
to complete a task.
• A program is a set of instructions
given to a computer, in some
programming language.
Algorithm serves as a blueprint to
write a program.
• Variable is a container whose value
can change depending on certain
conditions.
• Depending on values that are
assigned to a variable, few common
data type (variable type) in python
are
Output in python
• print () -> prints message given
between () with newline(default)

Input in python

• input()
• When input() function executes
program flow will be stopped until the
user has given an input.
• By default all input in python is taken
as string
How we learned?

• Algorithm to place the order in Uncle Sam’s


restaurant
• Algorithm to validate if the phone number entered is
correct or not
• Program to print the steps to make a pizza
• Program to print the menu of the restaurant
• Program to prepare a birthday invitation card.
• Program to print out an address slip to be pasted on
the invitation card.
ASSIGNMENT 1

Do you like ice-cream ?

What about making one today?

Watch this video and note down the algorithm to make


it.
https://www.youtube.com/watch?v=saMIG5HXjeI

Make your own ice-cream and give a surprise to your


family.
ASSIGNMENT 2

Your school is arranging a one-day picnic


program. You are the class monitor and
your class teacher has asked you to prepare
a list of students who are interested in
going for the same.

• Develop a program which takes in the


name of students, their phone number,
pick up and drop points
• Design the output such that it looks
very attractive.
ASSIGNMENT 3

Your society is planning to organize a


summer camp for kids. Your father being
the secretary is asked to collect details from
all, which will help in planning the activity.

Being a python expert, you decide to design


a form which can be easily filled by
inmates.
Write a program which collect details like
hobbies, interested activities, available time
etc and prints a report of the same.

You might also like