0% found this document useful (0 votes)
13 views

Python I

Uploaded by

yoezerlhendup3
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Python I

Uploaded by

yoezerlhendup3
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 23

Introduction

to Python Coding
“Every leaf fall is
not the end but it
is the beginning”
Lesson Outline:
o What is python?
o Relationship to other languages
o Features of python
o Basic requirements for Python
o Different types of Code Editors
o Demonstration to save and run the files on IDLE
o Use of print() function
o Learners Activity
What is python?
Python is a high-level, interpreted programming
language known for its simplicity, readability, and
versatility.

Founder of Python:
• Guido van Rossum
• Born on 31/01/1956
• Dutch programmer
• In the year 1989

• The name Python was selected from the TV Show "The


Complete Monty Python's Circus", which was
broadcasted on the BBC from 1969 to 1974.
Python Relationship to Other languages

Python programming language has been derived from


other languages in terms of:
1.Functional Programming Features from C.
2.Object Oriented Programming Features from C++.
3.Scripting Language Features from Perl and Shell Script.
4.Modular Programming Features from Modula-3 .

***Most of syntax in Python derived from C and ABC


languages.
Features of Python

•Free and Open-Source: Completely free to use, even for


commercial purposes.
•Cross-platform compatibility: Can run on different
operating systems such as Windows, macOS, and Linux
•Interpreted language: The source code is executed line by
line, and not all at once.
•Dynamically typed: Python allows variables to hold values
of any data type, and their types can be changed dynamically
during runtime.
Easy to code: can write programs with fewer lines
than other programming languages.

Java Code Python Code

public class HelloWorld print("Hello,world!")


{
public static void main
(String[] args)
{ System.out.println("Hello,
world!");
}
}
Python Applications
Python is a versatile programming language with a wide range
of applications. Some of the many common Python
applications are:
1.Desktop GUI Applications.
2.Web Development.
3.Game Development.
4.For Data Analysis Applications.
5.Machine Learning and AI.
6.Embedded Systems and IoT.
7.Data Science
8.Education programs and training courses (Coursera, Udemy, edX, Harvard).
9.Language Development (such as Boo, Swift, CoffeeScript, Cobra, and OCaml)
What do I need to learn Python? For Android Phone users

1. Computer Set/mobile
2. IDLE/Pydroid3 (Code editor)

Code Editors

1. IDLE
2. Sublime Text.
3. Atom For iPhone or iPad users
4. Pycharm
5. Visual studio code.
6. Jupyter
7. Spyder
8. PyDev
What is IDLE?

 Is an acronym for Integrated Development &


Learning Environment.

 is basically a software pack that consist of


equipment’s which are used for developing
and testing the software.
The two types of IDLE Window

Shell Window
Displays the output

•Editor Window
Is used to write source code
Create, save and run programs

1.Open IDLE
2.New Python Program from file menu
3.Write code (in editors window)
4. Save Python Program with (dot py extension
(eg. aieelaa.py)
5.Run Python Program
What is print() function in python?
 Is a function which helps us to
display/generate the output
 Sample coding to generate "Hello,
we are python lovers"

How to generate the above


output?
1.save the file with .py extension
2.Click on ---- Run----Run Module
My Dance
Demonstration using
print() function
Questions from the
topic discussed if any
Learners’ Activity

Write a python program


to generate

We are the future


programmer, python the
great
Activity 2: Write a python code to
print a cypress tree pattern.
Activity 3: creating a man with a signboard
Write a python code to create a man holding a signboard with ‘Kuzuzangpo la’ message displayed on
it.
Activity 4: Displaying an Information
Write a python code to print the personal information.
Lesson wrap-up Questions

1. What is the extension used to save python files?


2. What are the TWO windows of IDLE?
3. List any THREE Code Editors
4. How will you output the text “Hello, time to
wake up baby pythons”? Write a python code to
generate the given text

You might also like