CS001L M2 Introduction To Python
CS001L M2 Introduction To Python
CS001L.Module 2
First Term 2021 -2022
Learning For this module, learners will be
Objective introduced to the python
programming language and its
IDE.
Implement the basic structure and
essential elements of a particular
Python code.
PYTHON Python laid its foundation in the
late 1980s. The implementation of
HISTORY Python was started in December
1989 by Guido Van Rossum at
Centrum Wiskunde &
Informatica ( CWI ) is the
national research institute for
mathematics and computer science
in the Netherlands.
In February 1991, Guido Van Rossum
PYTHON published the code (labeled version 0.9.0) to
HISTORY alt.sources. However, Guido Van Rossum
was reading the script of a popular BBC
comedy series "Monty Python's Flying
Circus". It was late on-air 1970s. Van
Rossum wanted to select a name which
unique, sort, and little-bit mysterious. So he
decided to select naming Python after the
"Monty Python's Flying Circus" for their
newly created programming language.
PYTHON ABC programming language is said
HISTORY to be the predecessor of Python
language, which was capable of
Exception Handling and interfacing
with the Amoeba Operating System.
Moreover, Modula-3 is the other
programming languages influence
Python.
Tips to Keep in Mind While Learning
Python
• Discuss Concepts with
• Make it Clear Why We Want Other
to Learn
• Do small Projects
• Learn the Basic Syntax
• Teach Others
• Write Code by Own
• Explore Libraries and
• Keep Practicing Frameworks
• Make Notes as Needed • Contribute to Open Source
Features of Python Features of Python
1. public class HelloWorld {
2. public static void main(String[] args){
3.// Prints "Hello, World" to the terminal
print("Hello World")
window.
4. System.out.println("Hello World");
5. }
6. }
Python The print() function displays the
print( ) given object to the standard output
device (screen) or to the text stream
Function file.
Example :
name = input("Enter a name of student:")
print("The student name is: ", name)
Laboratory Activity1.2
ASCII ART and Student Information
PROCEDURE
Graphic Paper and ASCII Art
Laboratory Activity 1
Procedure
• Step 1. Select your preferred ASCII Art.
• Step 2. You may visit this suggested URL Links.
• https://text-symbols.com/ascii-art/
• www.asciiart.eu
• Step 3. Kindly open, MS Excel Application for graphic paper format.
• Set the Column width as 1 to 2 inch.
• Please see the given example attached in this activity.
• Step 4. After you created your graphic paper using MS Excel, you may now copy and
paste your preferred ACSII Art.
• Step 5. Save your Excel file as Section.LastName1.LastName2.LabA1
• Example: Example: A50.DelosSantos.Arupo.LabA1
• PLEASE BE GUIDED.
PROCEDURE
ASCII Art and First
PYTHON Program
Laboratory Activity 1
Procedure
• Step 1. Be ready and open your ACSII Art Excel File.
• Step 2. Open the MS Word Application and the Laboratory Exercises
Template.
• Step 3. No ambiguity.
• Step 4. This is your First PYTHON Program, using print() & input()
• Step 5. Save your Word file as
Section.LastName1.LastName2.LabA1
• Example: A50.DelosSantos.Arupo.LabA1
• PLEASE BE GUIDED.
Laboratory Problem: Write a Python program that will ask for the following
Activity 2 data: name, age, program and school. And also show the
algorithm of the data. Finally, Save as your file in MS Word as
Section.LN1.LN2.LabA2
Sample Run:
Enter your name: Rhea
Enter your age: 18
Your Program: BSIT
School: Malayan Colleges Laguna
Hi, Rhea. You are 18 years old. BSIT student of Malayan
Colleges Laguna
Point System
• Activity 1 and 2 • Activity 1 or 2
• Grade score =100 to • Grade score = 89 to 85
90 • NO ACTIVITY =
• NO ACTIVITY = ZERO
ZERO
Merci!
Any questions?
You may send your question in MS Teams
[email protected]
25