Python is an interpreted, object-oriented, high-level programming language with dynamic typing and dynamic binding. Its simple, easy to learn syntax emphasizes readability and it uses significant indentation to delimit code blocks rather than curly braces or keywords. Python supports modules and packages, which encourages program modularity and code reuse. It also has a large standard library.
Python Programming for basic beginners.pptxmohitesoham12
The document provides an overview of Python programming concepts including data types, variables, operators, and collections like lists and tuples. It defines Python as a general purpose programming language created in 1991 that can be used for desktop, web, machine learning, and data science apps. Key data types covered include numbers, strings, lists, and tuples. Operators for arithmetic, comparison, logical, membership, and identity are also summarized. Various list and tuple methods for accessing, modifying, sorting, and joining their items are demonstrated through examples.
- The document discusses Python programming concepts such as data types, variables, operators, and syntax. It provides examples of Python code for variables, comments, strings, numbers, and more.
- Python is a popular programming language used for web development, software development, mathematics, and more. It runs on different platforms and has a simple, readable syntax.
- Key features of Python include dynamic typing, automatic memory management, and an intuitive syntax that uses indentation rather than brackets.
Python is an open source programming language created by Guido van Rossum in 1991. It is named after the comedy group Monty Python and is based on the ABC language. Python supports both procedural and object-oriented programming and can be used for web development, data analysis, artificial intelligence, and more. It has a simple syntax and large standard library that make it easy to learn and use for various applications.
The document provides an introduction to the Python programming language. It discusses that Python was created by Guido Van Rossum in 1991 and was named after the Monty Python comedy troupe. Python is an open source, interpreted language that can be used for both procedural and object-oriented programming. It has a simple syntax and supports features like graphical user interfaces, integration with other languages, and is used widely in applications like web development, artificial intelligence, and data science. The document also covers Python concepts like variables, data types, operators, input/output and comments.
Python is a general-purpose programming language that is highly readable. It uses English keywords and has fewer syntactical constructions than other languages. Python supports object-oriented, interactive, and procedural programming. It has various data types like numbers, strings, lists, tuples and dictionaries. Python uses constructs like if/else, for loops, functions and classes to control program flow and structure code.
This document provides an overview of core concepts in Python including variables, keywords, data types, comments, and basic programs. It discusses how variables are used to store data values without needing declaration. The different data types in Python like integers, floats, strings, lists, tuples, and dictionaries are explained along with examples. It also demonstrates how to write single line and multiline comments and includes examples of basic Python programs to perform mathematical operations like addition, subtraction, multiplication and division of numbers.
This document describes a presentation given in Taiwan on translating Python programs into non-English languages to improve readability for non-native English speakers. It provides an example of translating 18 Turtle graphics demo programs into Traditional Chinese. The document discusses how Python 3.0 allows using non-ASCII characters as identifiers by changing the default encoding to UTF-8. It shows examples of Python code in both English and Traditional Chinese and argues that code written in one's native language can be more readable and compact.
The document provides an overview of the basics of the Python programming language. It discusses that Python is an interpreted, interactive, object-oriented scripting language. It also covers Python's history and describes it as being easy to learn and read, easy to maintain, portable, and extensible. The document then details Python's core data types including numbers, strings, lists, tuples, and dictionaries. It provides examples of how to define and manipulate variables of each data type in Python.
This document discusses Python data types. It introduces common data types like integers, floats, strings, lists, tuples, dictionaries, booleans and sets. For each data type, it provides examples of how to define variables of that type, check the type, perform operations like slicing, concatenation and repetition. Standard data types like numbers, sequences, booleans, sets and dictionaries are covered in detail with examples showing how to create and manipulate variables of each type.
This document provides an overview of key Python concepts including variables, data types, operators, conditional statements, loops, functions, classes, modules and file handling. It also discusses Python collections like lists, tuples, sets and dictionaries. Finally, it covers how to connect Python to MySQL databases and perform basic operations like selecting, inserting, updating and deleting data.
This document discusses programming languages and how computers execute code. It explains that high-level languages like Python, C++, and Java are translated into low-level machine language before the computer can run programs. It also discusses interpreters and compilers as tools that translate high-level code. The document then provides an introduction to the Python programming language, including basic Python vocabulary terms. It gives examples of Python code and explains concepts like variables, functions, operators, and data types.
Python-Beginer-PartOnePython is one of the top programming languages in the w...ahmedosman389
Python is one of the top programming languages in the world, widely used in fields such as AI, machine learning, data science, and web development.
The simple and English-like syntax of Python makes it a go-to language for beginners who want to get into coding quickly.
Because Python is used in multiple fields, there is a high demand for Python developers, with competitive base salaries.
Unit I - 1R introduction to R program.pptxSreeLaya9
This document provides an introduction to R programming. It discusses basic interactions with R, using R as a calculator, vectors, factors, data frames, missing values, functions, packages, and data pipelines. R can be used for statistical analysis, data visualization, and machine learning. Key functions and objects discussed include reading and writing data, data frames, factors, vectors, user-defined and built-in functions, and the pipe operator.
Python is a general-purpose interpreted, interactive, object-oriented, and high-level programming language.
Make use of the PPT to have a better understanding of Python.
This document provides an outline and overview of a presentation on Python programming. The outline includes sections on what Python is, why Python, an introduction to Python, Python programming tips and tricks, more on Python, and the scientific module. Under each section, there are bullet points explaining key aspects of Python like its design, uses, basic syntax, data structures, functions, classes, modules, and popular scientific programming libraries like NumPy.
This document provides an overview of Python object and data structure basics. It discusses basic data types like integers, floats, strings, lists, dictionaries, tuples, sets, and booleans. It covers numeric operators and variable assignments. Strings are described in detail including indexing, slicing, and common string methods. Lists support indexing, slicing, and methods like append, sort, and reverse. Dictionaries use key-value pairs to store data and have methods like keys and values. Tuples are like lists but immutable. Sets store unique elements. The input function allows user input in programs. Examples are given for calculating area and volume using user input.
The document provides an introduction to Python programming. It discusses that Python is a high-level, interpreted, object-oriented, and general purpose programming language. It can be used for web development, scientific computing, desktop applications, and more. The document then covers Python basics like data types, variables, literals, operators, control flow statements, functions, modules and packages. It also discusses installing Python on Windows and writing the first Python program.
Basic Python Programming: Part 01 and Part 02Fariz Darari
This document discusses basic Python programming concepts including strings, functions, conditionals, loops, imports and recursion. It begins with examples of printing strings, taking user input, and calculating areas of shapes. It then covers variables and data types, operators, conditional statements, loops, functions, imports, strings, and recursion. Examples are provided throughout to demonstrate each concept.
The document discusses Python programming concepts like variables, data types, operators, conditional statements and indentation. It explains that variables store and label data in memory, common data types like integers, floats and strings, basic arithmetic and assignment operators, if/else conditional statements and how Python uses indentation to group blocks of code. It also provides examples of type casting between different data types and prompts for writing Python programs to perform various comparisons and calculations.
The document provides an introduction and comparison of Python and C programming languages. Some key points:
- Python is an interpreted language while C needs compilation. Python makes program development faster.
- Variables, input/output, arrays, control structures like if/else, for loops work differently in Python compared to C.
- Python uses lists instead of arrays. Lists are mutable and support slicing.
- Strings are treated as character lists in Python.
- Functions are defined using def keyword in Python.
- The document also introduces sequences (strings, tuples, lists), dictionaries, and sets in Python - their usage and operations.
Basic concept of Python.pptx includes design tool, identifier, variables.supriyasarkar38
This document discusses Python programming concepts including data types, variables, operators, and functions. It provides examples of Python syntax for writing and executing code as well as built-in data types like strings, integers, and lists. Key concepts covered include variables, data type casting, comments, arithmetic and comparison operators, and functions.
1. Variables - Learn to conveniently store data in your Python programs!
2. Numbers - Learn how numbers work behind the scenes in your Python programs!
3. Strings - Master the written word and automate messages using text!
4. Logic and Data Structures - Teach your Python programs to think and decide!
5. Loops - Save time and effort, by making computers do the hard work for you!
6. Functions - Automate Tasks by Creating your very own Python Functions that you can use over and over!
7. OOP - Add Python to Your Resumé By Mastering Object-Oriented Programming, an industry-standard programming technique!
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025BookNet Canada
Book industry standards are evolving rapidly. In the first part of this session, we’ll share an overview of key developments from 2024 and the early months of 2025. Then, BookNet’s resident standards expert, Tom Richardson, and CEO, Lauren Stewart, have a forward-looking conversation about what’s next.
Link to recording, transcript, and accompanying resource: https://bnctechforum.ca/sessions/standardsgoals-for-2025-standards-certification-roundup/
Presented by BookNet Canada on May 6, 2025 with support from the Department of Canadian Heritage.
Web & Graphics Designing Training at Erginous Technologies in Rajpura offers practical, hands-on learning for students, graduates, and professionals aiming for a creative career. The 6-week and 6-month industrial training programs blend creativity with technical skills to prepare you for real-world opportunities in design.
The course covers Graphic Designing tools like Photoshop, Illustrator, and CorelDRAW, along with logo, banner, and branding design. In Web Designing, you’ll learn HTML5, CSS3, JavaScript basics, responsive design, Bootstrap, Figma, and Adobe XD.
Erginous emphasizes 100% practical training, live projects, portfolio building, expert guidance, certification, and placement support. Graduates can explore roles like Web Designer, Graphic Designer, UI/UX Designer, or Freelancer.
For more info, visit erginous.co.in , message us on Instagram at erginoustechnologies, or call directly at +91-89684-38190 . Start your journey toward a creative and successful design career today!
Ad
More Related Content
Similar to Python- Basic. pptx with lists, tuples dictionaries and data types (20)
This document provides an overview of core concepts in Python including variables, keywords, data types, comments, and basic programs. It discusses how variables are used to store data values without needing declaration. The different data types in Python like integers, floats, strings, lists, tuples, and dictionaries are explained along with examples. It also demonstrates how to write single line and multiline comments and includes examples of basic Python programs to perform mathematical operations like addition, subtraction, multiplication and division of numbers.
This document describes a presentation given in Taiwan on translating Python programs into non-English languages to improve readability for non-native English speakers. It provides an example of translating 18 Turtle graphics demo programs into Traditional Chinese. The document discusses how Python 3.0 allows using non-ASCII characters as identifiers by changing the default encoding to UTF-8. It shows examples of Python code in both English and Traditional Chinese and argues that code written in one's native language can be more readable and compact.
The document provides an overview of the basics of the Python programming language. It discusses that Python is an interpreted, interactive, object-oriented scripting language. It also covers Python's history and describes it as being easy to learn and read, easy to maintain, portable, and extensible. The document then details Python's core data types including numbers, strings, lists, tuples, and dictionaries. It provides examples of how to define and manipulate variables of each data type in Python.
This document discusses Python data types. It introduces common data types like integers, floats, strings, lists, tuples, dictionaries, booleans and sets. For each data type, it provides examples of how to define variables of that type, check the type, perform operations like slicing, concatenation and repetition. Standard data types like numbers, sequences, booleans, sets and dictionaries are covered in detail with examples showing how to create and manipulate variables of each type.
This document provides an overview of key Python concepts including variables, data types, operators, conditional statements, loops, functions, classes, modules and file handling. It also discusses Python collections like lists, tuples, sets and dictionaries. Finally, it covers how to connect Python to MySQL databases and perform basic operations like selecting, inserting, updating and deleting data.
This document discusses programming languages and how computers execute code. It explains that high-level languages like Python, C++, and Java are translated into low-level machine language before the computer can run programs. It also discusses interpreters and compilers as tools that translate high-level code. The document then provides an introduction to the Python programming language, including basic Python vocabulary terms. It gives examples of Python code and explains concepts like variables, functions, operators, and data types.
Python-Beginer-PartOnePython is one of the top programming languages in the w...ahmedosman389
Python is one of the top programming languages in the world, widely used in fields such as AI, machine learning, data science, and web development.
The simple and English-like syntax of Python makes it a go-to language for beginners who want to get into coding quickly.
Because Python is used in multiple fields, there is a high demand for Python developers, with competitive base salaries.
Unit I - 1R introduction to R program.pptxSreeLaya9
This document provides an introduction to R programming. It discusses basic interactions with R, using R as a calculator, vectors, factors, data frames, missing values, functions, packages, and data pipelines. R can be used for statistical analysis, data visualization, and machine learning. Key functions and objects discussed include reading and writing data, data frames, factors, vectors, user-defined and built-in functions, and the pipe operator.
Python is a general-purpose interpreted, interactive, object-oriented, and high-level programming language.
Make use of the PPT to have a better understanding of Python.
This document provides an outline and overview of a presentation on Python programming. The outline includes sections on what Python is, why Python, an introduction to Python, Python programming tips and tricks, more on Python, and the scientific module. Under each section, there are bullet points explaining key aspects of Python like its design, uses, basic syntax, data structures, functions, classes, modules, and popular scientific programming libraries like NumPy.
This document provides an overview of Python object and data structure basics. It discusses basic data types like integers, floats, strings, lists, dictionaries, tuples, sets, and booleans. It covers numeric operators and variable assignments. Strings are described in detail including indexing, slicing, and common string methods. Lists support indexing, slicing, and methods like append, sort, and reverse. Dictionaries use key-value pairs to store data and have methods like keys and values. Tuples are like lists but immutable. Sets store unique elements. The input function allows user input in programs. Examples are given for calculating area and volume using user input.
The document provides an introduction to Python programming. It discusses that Python is a high-level, interpreted, object-oriented, and general purpose programming language. It can be used for web development, scientific computing, desktop applications, and more. The document then covers Python basics like data types, variables, literals, operators, control flow statements, functions, modules and packages. It also discusses installing Python on Windows and writing the first Python program.
Basic Python Programming: Part 01 and Part 02Fariz Darari
This document discusses basic Python programming concepts including strings, functions, conditionals, loops, imports and recursion. It begins with examples of printing strings, taking user input, and calculating areas of shapes. It then covers variables and data types, operators, conditional statements, loops, functions, imports, strings, and recursion. Examples are provided throughout to demonstrate each concept.
The document discusses Python programming concepts like variables, data types, operators, conditional statements and indentation. It explains that variables store and label data in memory, common data types like integers, floats and strings, basic arithmetic and assignment operators, if/else conditional statements and how Python uses indentation to group blocks of code. It also provides examples of type casting between different data types and prompts for writing Python programs to perform various comparisons and calculations.
The document provides an introduction and comparison of Python and C programming languages. Some key points:
- Python is an interpreted language while C needs compilation. Python makes program development faster.
- Variables, input/output, arrays, control structures like if/else, for loops work differently in Python compared to C.
- Python uses lists instead of arrays. Lists are mutable and support slicing.
- Strings are treated as character lists in Python.
- Functions are defined using def keyword in Python.
- The document also introduces sequences (strings, tuples, lists), dictionaries, and sets in Python - their usage and operations.
Basic concept of Python.pptx includes design tool, identifier, variables.supriyasarkar38
This document discusses Python programming concepts including data types, variables, operators, and functions. It provides examples of Python syntax for writing and executing code as well as built-in data types like strings, integers, and lists. Key concepts covered include variables, data type casting, comments, arithmetic and comparison operators, and functions.
1. Variables - Learn to conveniently store data in your Python programs!
2. Numbers - Learn how numbers work behind the scenes in your Python programs!
3. Strings - Master the written word and automate messages using text!
4. Logic and Data Structures - Teach your Python programs to think and decide!
5. Loops - Save time and effort, by making computers do the hard work for you!
6. Functions - Automate Tasks by Creating your very own Python Functions that you can use over and over!
7. OOP - Add Python to Your Resumé By Mastering Object-Oriented Programming, an industry-standard programming technique!
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025BookNet Canada
Book industry standards are evolving rapidly. In the first part of this session, we’ll share an overview of key developments from 2024 and the early months of 2025. Then, BookNet’s resident standards expert, Tom Richardson, and CEO, Lauren Stewart, have a forward-looking conversation about what’s next.
Link to recording, transcript, and accompanying resource: https://bnctechforum.ca/sessions/standardsgoals-for-2025-standards-certification-roundup/
Presented by BookNet Canada on May 6, 2025 with support from the Department of Canadian Heritage.
Web & Graphics Designing Training at Erginous Technologies in Rajpura offers practical, hands-on learning for students, graduates, and professionals aiming for a creative career. The 6-week and 6-month industrial training programs blend creativity with technical skills to prepare you for real-world opportunities in design.
The course covers Graphic Designing tools like Photoshop, Illustrator, and CorelDRAW, along with logo, banner, and branding design. In Web Designing, you’ll learn HTML5, CSS3, JavaScript basics, responsive design, Bootstrap, Figma, and Adobe XD.
Erginous emphasizes 100% practical training, live projects, portfolio building, expert guidance, certification, and placement support. Graduates can explore roles like Web Designer, Graphic Designer, UI/UX Designer, or Freelancer.
For more info, visit erginous.co.in , message us on Instagram at erginoustechnologies, or call directly at +91-89684-38190 . Start your journey toward a creative and successful design career today!
Quantum Computing Quick Research Guide by Arthur MorganArthur Morgan
This is a Quick Research Guide (QRG).
QRGs include the following:
- A brief, high-level overview of the QRG topic.
- A milestone timeline for the QRG topic.
- Links to various free online resource materials to provide a deeper dive into the QRG topic.
- Conclusion and a recommendation for at least two books available in the SJPL system on the QRG topic.
QRGs planned for the series:
- Artificial Intelligence QRG
- Quantum Computing QRG
- Big Data Analytics QRG
- Spacecraft Guidance, Navigation & Control QRG (coming 2026)
- UK Home Computing & The Birth of ARM QRG (coming 2027)
Any questions or comments?
- Please contact Arthur Morgan at [email protected].
100% human made.
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPathCommunity
Join this UiPath Community Berlin meetup to explore the Orchestrator API, Swagger interface, and the Test Manager API. Learn how to leverage these tools to streamline automation, enhance testing, and integrate more efficiently with UiPath. Perfect for developers, testers, and automation enthusiasts!
📕 Agenda
Welcome & Introductions
Orchestrator API Overview
Exploring the Swagger Interface
Test Manager API Highlights
Streamlining Automation & Testing with APIs (Demo)
Q&A and Open Discussion
Perfect for developers, testers, and automation enthusiasts!
👉 Join our UiPath Community Berlin chapter: https://community.uipath.com/berlin/
This session streamed live on April 29, 2025, 18:00 CET.
Check out all our upcoming UiPath Community sessions at https://community.uipath.com/events/.
Dev Dives: Automate and orchestrate your processes with UiPath MaestroUiPathCommunity
This session is designed to equip developers with the skills needed to build mission-critical, end-to-end processes that seamlessly orchestrate agents, people, and robots.
📕 Here's what you can expect:
- Modeling: Build end-to-end processes using BPMN.
- Implementing: Integrate agentic tasks, RPA, APIs, and advanced decisioning into processes.
- Operating: Control process instances with rewind, replay, pause, and stop functions.
- Monitoring: Use dashboards and embedded analytics for real-time insights into process instances.
This webinar is a must-attend for developers looking to enhance their agentic automation skills and orchestrate robust, mission-critical processes.
👨🏫 Speaker:
Andrei Vintila, Principal Product Manager @UiPath
This session streamed live on April 29, 2025, 16:00 CET.
Check out all our upcoming Dev Dives sessions at https://community.uipath.com/dev-dives-automation-developer-2025/.
Train Smarter, Not Harder – Let 3D Animation Lead the Way!
Discover how 3D animation makes inductions more engaging, effective, and cost-efficient.
Check out the slides to see how you can transform your safety training process!
Slide 1: Why 3D animation changes the game
Slide 2: Site-specific induction isn’t optional—it’s essential
Slide 3: Visitors are most at risk. Keep them safe
Slide 4: Videos beat text—especially when safety is on the line
Slide 5: TechEHS makes safety engaging and consistent
Slide 6: Better retention, lower costs, safer sites
Slide 7: Ready to elevate your induction process?
Can an animated video make a difference to your site's safety? Let's talk.
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxAnoop Ashok
In today's fast-paced retail environment, efficiency is key. Every minute counts, and every penny matters. One tool that can significantly boost your store's efficiency is a well-executed planogram. These visual merchandising blueprints not only enhance store layouts but also save time and money in the process.
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxshyamraj55
We’re bringing the TDX energy to our community with 2 power-packed sessions:
🛠️ Workshop: MuleSoft for Agentforce
Explore the new version of our hands-on workshop featuring the latest Topic Center and API Catalog updates.
📄 Talk: Power Up Document Processing
Dive into smart automation with MuleSoft IDP, NLP, and Einstein AI for intelligent document workflows.
Generative Artificial Intelligence (GenAI) in BusinessDr. Tathagat Varma
My talk for the Indian School of Business (ISB) Emerging Leaders Program Cohort 9. In this talk, I discussed key issues around adoption of GenAI in business - benefits, opportunities and limitations. I also discussed how my research on Theory of Cognitive Chasms helps address some of these issues
Mastering Advance Window Functions in SQL.pdfSpiral Mantra
How well do you really know SQL?📊
.
.
If PARTITION BY and ROW_NUMBER() sound familiar but still confuse you, it’s time to upgrade your knowledge
And you can schedule a 1:1 call with our industry experts: https://spiralmantra.com/contact-us/ or drop us a mail at [email protected]
Book industry standards are evolving rapidly. In the first part of this session, we’ll share an overview of key developments from 2024 and the early months of 2025. Then, BookNet’s resident standards expert, Tom Richardson, and CEO, Lauren Stewart, have a forward-looking conversation about what’s next.
Link to recording, presentation slides, and accompanying resource: https://bnctechforum.ca/sessions/standardsgoals-for-2025-standards-certification-roundup/
Presented by BookNet Canada on May 6, 2025 with support from the Department of Canadian Heritage.
Vaibhav Gupta BAML: AI work flows without Hallucinationsjohn409870
Shipping Agents
Vaibhav Gupta
Cofounder @ Boundary
in/vaigup
boundaryml/baml
Imagine if every API call you made
failed only 5% of the time
boundaryml/baml
Imagine if every LLM call you made
failed only 5% of the time
boundaryml/baml
Imagine if every LLM call you made
failed only 5% of the time
boundaryml/baml
Fault tolerant systems are hard
but now everything must be
fault tolerant
boundaryml/baml
We need to change how we
think about these systems
Aaron Villalpando
Cofounder @ Boundary
Boundary
Combinator
boundaryml/baml
We used to write websites like this:
boundaryml/baml
But now we do this:
boundaryml/baml
Problems web dev had:
boundaryml/baml
Problems web dev had:
Strings. Strings everywhere.
boundaryml/baml
Problems web dev had:
Strings. Strings everywhere.
State management was impossible.
boundaryml/baml
Problems web dev had:
Strings. Strings everywhere.
State management was impossible.
Dynamic components? forget about it.
boundaryml/baml
Problems web dev had:
Strings. Strings everywhere.
State management was impossible.
Dynamic components? forget about it.
Reuse components? Good luck.
boundaryml/baml
Problems web dev had:
Strings. Strings everywhere.
State management was impossible.
Dynamic components? forget about it.
Reuse components? Good luck.
Iteration loops took minutes.
boundaryml/baml
Problems web dev had:
Strings. Strings everywhere.
State management was impossible.
Dynamic components? forget about it.
Reuse components? Good luck.
Iteration loops took minutes.
Low engineering rigor
boundaryml/baml
React added engineering rigor
boundaryml/baml
The syntax we use changes how we
think about problems
boundaryml/baml
We used to write agents like this:
boundaryml/baml
Problems agents have:
boundaryml/baml
Problems agents have:
Strings. Strings everywhere.
Context management is impossible.
Changing one thing breaks another.
New models come out all the time.
Iteration loops take minutes.
boundaryml/baml
Problems agents have:
Strings. Strings everywhere.
Context management is impossible.
Changing one thing breaks another.
New models come out all the time.
Iteration loops take minutes.
Low engineering rigor
boundaryml/baml
Agents need
the expressiveness of English,
but the structure of code
F*** You, Show Me The Prompt.
boundaryml/baml
<show don’t tell>
Less prompting +
More engineering
=
Reliability +
Maintainability
BAML
Sam
Greg Antonio
Chris
turned down
openai to join
ex-founder, one
of the earliest
BAML users
MIT PhD
20+ years in
compilers
made his own
database, 400k+
youtube views
Vaibhav Gupta
in/vaigup
[email protected]
boundaryml/baml
Thank you!
Social Media App Development Company-EmizenTechSteve Jonas
EmizenTech is a trusted Social Media App Development Company with 11+ years of experience in building engaging and feature-rich social platforms. Our team of skilled developers delivers custom social media apps tailored to your business goals and user expectations. We integrate real-time chat, video sharing, content feeds, notifications, and robust security features to ensure seamless user experiences. Whether you're creating a new platform or enhancing an existing one, we offer scalable solutions that support high performance and future growth. EmizenTech empowers businesses to connect users globally, boost engagement, and stay competitive in the digital social landscape.
2. INTRODUCTION TO PYTHON:
• Python is a general-purpose interpreted, interactive, object-oriented, and high-level programming
language.
• Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is
designed to be highly readable.
Python is Interpreted
Python is Interactive
Python is Object-Oriented
Python is a Beginner's Language
3. ADVANTAGES OF PYTHON
As mentioned before, Python is one of the most widely used language over the web. I'm going to list
few of them here:
Easy-to-learn
Easy-to-read
Easy-to-maintain
A broad standard library
Portable
5. CHARACTERISTICS OF PYTHON
Following are important characteristics of Python Programming −
It supports functional and structured programming methods as well as OOP.
It can be used as a scripting language or can be compiled to byte-code for
building large applications.
It provides very high-level dynamic data types and supports dynamic type
checking.
It supports automatic garbage collection.
It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java.
6. EXAMPLES:
Program 1:
• Print(“"Hello, Python!")
Program 2:
# This program adds two numbers
num1 = 1.5
num2 = 6.3
# Add two numbers
sum = num1 + num2
# Display the sum
print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))
7. PYTHON DATA TYPES
• Variables can store data of different types, and different types can do different things.
Python has the following data types built-in by default, in these categories:
8. Text Type: str
Numeric
Types:
int, float, complex
Sequence
Types:
list, tuple, range
Mapping
Type:
dict
Set Types: set, frozenset
Boolean Type: bool
Binary Types: bytes, bytearray, memoryview
9. Getting the Data Type
x = 5
print(type(x))
Setting the Data Type
x = "Hello World"
#display x:
print(x)
#display the data type of x:
print(type(x))
10. NUMBERS
• Int :
Example:
x = 1
y =35656222554887711
z = -3255522
print(type(x))
print(type(y))
print(type(z))
• Float
Example:
x = 1.10
y = 1.0
z = -35.59
print(type(x))
print(type(y))
print(type(z))
• Complex
Example:
x = 3+5j
y = 5j
z = -5j
print(type(x))
print(type(y))
print(type(z))
11. STRINGS
Single Line:
a = "Hello"
print(a)
Multiline Strings:
a = """Lorem ipsum dolor sit amet,
consectetur adipiscing elit,
sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua."""
print(a)
12. • Slicing:
b = "Hello, World!"
print(b[2:5])
• Upper Case:
a = "Hello, World!"
print(a.upper())
• Lower Case:
a = "Hello, World!"
print(a.lower())
13. • String Concatenation:
a = "Hello"
b = "World"
c = a + b
print(c)
• String Replace:
a = "Hello"
a.replace(“H”,”K”)
• Remove Whitespace:
a = " Hello, World! "
print(a.strip())
14. PYTHON LISTS
• Lists are the most versatile of Python's compound data types. A list contains items separated by commas and
enclosed within square brackets ([]). To some extent, lists are similar to arrays in C. One difference between them
is that all the items belonging to a list can be of different data type.
• list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]
• tinylist = [123, 'john']
• print list # Prints complete list
• print list[0] # Prints first element of the list
• print list[1:3] # Prints elements starting from 2nd till 3rd
• print list[2:] # Prints elements starting from 3rd element
• print tinylist * 2 # Prints list two times
• print list + tinylist # Prints concatenated lists
18. PYTHON TUPLES
• A tuple is another sequence data type that is similar to the list. A tuple consists of a number of values separated by commas. Unlike lists, however,
tuples are enclosed within parentheses.
• The main differences between lists and tuples are: Lists are enclosed in brackets ( [ ] ) and their elements and size can be changed, while tuples are
enclosed in parentheses ( ( ) ) and cannot be updated. Tuples can be thought of as read-only lists. For example
• tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )
• tinytuple = (123, 'john')
• print tuple # Prints the complete tuple
• print tuple[0] # Prints first element of the tuple
• print tuple[1:3] # Prints elements of the tuple starting from 2nd till 3rd
• print tuple[2:] # Prints elements of the tuple starting from 3rd element
• print tinytuple * 2 # Prints the contents of the tuple twice
• print tuple + tinytuple # Prints concatenated tuples
20. PYTHON DICTIONARIES
• Python's dictionaries are kind of hash table type. They work like associative arrays or hashes found in Perl and consist of key-value pairs. A
dictionary key can be almost any Python type, but are usually numbers or strings. Values, on the other hand, can be any arbitrary Python object.
• Dictionaries are enclosed by curly braces ({ }) and values can be assigned and accessed using square braces ([]). For example −#!/usr/bin/python
• dict = {}
• dict['one'] = "This is one"
• dict[2] = "This is two"
• tinydict = {'name': 'john','code':6734, 'dept': 'sales’}
• print dict['one'] # Prints value for 'one' key
• print dict[2] # Prints value for 2 key
• print tinydict # Prints complete dictionary
• print tinydict.keys() # Prints all the keys
• print tinydict.values() # Prints all the values
23. Removing Items
• POP:
thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1964
}
thisdict.pop("model")
print(thisdict)
• Del
thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1964
}
del thisdict
print(thisdict) #this will cause an error because "thisdict" no longer exists.
• Clear
thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1964
}
thisdict.clear()
print(thisdict)
24. DATA TYPE (SPECIAL ):
• Sets are used to store multiple items in a single variable.
• Set is one of 4 built-in data types in Python used to store collections of data, the other 3 are List, Tuple,
and Dictionary, all with different qualities and usage.
• A set is a collection which is both unordered and unindexed.
• Sets are written with curly brackets.
Create a Set:
• thisset = {"apple", "banana", "cherry"}
print(thisset)