python programming language Python is a high-level, interpreted, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation. INTRODUCTION
HISTORY
USES OF PYTHON
FEATURES OF PYTHON
PYTHON PROJECT FOR BEGINNERS
PYTHON PROGRAM
KEY CHANGES IN PYTHON
BASIC SYNTAX
VARIABLE
NUMBERS
STANDARD TYPE HIERARCHY
STRING
CONDITIONALS
FOR LOOP
FUNCTION
KEYWORDS
WHY PYTHON ?
DIFFERENTIATE
EXAMPLES
Python is a popular programming language. It was created by Guido van Rossum, and released in 1991.
It is used for:
- web development (server-side),
- software development,
- mathematics,
- system scripting.
What can Python do?
Python can be used on a server to create web applications.
Python can be used alongside software to create workflows.
Python can connect to database systems. It can also read and modify files.
Python can be used to handle big data and perform complex mathematics.
Python can be used for rapid prototyping, or for production-ready software development.
- Why Python?
Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).
Python has a simple syntax similar to the English language.
Python has syntax that allows developers to write programs with fewer lines than some other programming languages.
Python runs on an interpreter system, meaning that code can be executed as soon as it is written. This means that prototyping can be very quick.
Python can be treated in a procedural way, an object-oriented way or a functional way.
- what we learn:
1- Python Install.
2- Python Comments.
3- Python Variables.
4- Python Data Types.
5- Python Numbers.
python programming language Python is a high-level, interpreted, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation. INTRODUCTION
HISTORY
USES OF PYTHON
FEATURES OF PYTHON
PYTHON PROJECT FOR BEGINNERS
PYTHON PROGRAM
KEY CHANGES IN PYTHON
BASIC SYNTAX
VARIABLE
NUMBERS
STANDARD TYPE HIERARCHY
STRING
CONDITIONALS
FOR LOOP
FUNCTION
KEYWORDS
WHY PYTHON ?
DIFFERENTIATE
EXAMPLES
Python is a popular programming language. It was created by Guido van Rossum, and released in 1991.
It is used for:
- web development (server-side),
- software development,
- mathematics,
- system scripting.
What can Python do?
Python can be used on a server to create web applications.
Python can be used alongside software to create workflows.
Python can connect to database systems. It can also read and modify files.
Python can be used to handle big data and perform complex mathematics.
Python can be used for rapid prototyping, or for production-ready software development.
- Why Python?
Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).
Python has a simple syntax similar to the English language.
Python has syntax that allows developers to write programs with fewer lines than some other programming languages.
Python runs on an interpreter system, meaning that code can be executed as soon as it is written. This means that prototyping can be very quick.
Python can be treated in a procedural way, an object-oriented way or a functional way.
- what we learn:
1- Python Install.
2- Python Comments.
3- Python Variables.
4- Python Data Types.
5- Python Numbers.
This presentation provides the information on python including the topics Python features, applications, variables and operators in python, control statements, numbers, strings, print formatting, list and list comprehension, dictionaries, tuples, files, sets, boolean, mehtods and functions, lambda expressions and a sample project using Python.
SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL
After the end of lesson you will be able to learn Python basics-What Python is? Its releases. Where we can use Python? Python Features. Tokens, comments variables etc... In out next PPT you will learn how to input and get output in Python
Python is one of the powerful, high-level, easy to learn programming language that
provides a huge number of applications. Some of its features, such as being object-oriented
and open source, having numerous IDE’s, etc. make it one of the most in-demand
programming languages of the present IT industry.
According to TIOBE index, as of January 2020, Python is one of the popular programming
languages. By looking at the popularity of this programming language, many IT
professionals, both beginners as well as experienced alike, are willing to build their career
as a Python developer
Explains what is a Set and Dictionary. Explains various operations on Set, Set class methods for manipulation and frozensets. Explains various Dictionary class methods and their usage, use of iterators in Dictionary and use of for loop in dictionary
Explains how to create a List in Python. Explains various operations that can be performed on Lists. Discusses various List class methods that can be used to manipulate the Lists. Explains what is a Tuple how to create it and various function that can be used on Tuples. Explains difference between List and Tuple
This presentation provides the information on python including the topics Python features, applications, variables and operators in python, control statements, numbers, strings, print formatting, list and list comprehension, dictionaries, tuples, files, sets, boolean, mehtods and functions, lambda expressions and a sample project using Python.
SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL
After the end of lesson you will be able to learn Python basics-What Python is? Its releases. Where we can use Python? Python Features. Tokens, comments variables etc... In out next PPT you will learn how to input and get output in Python
Python is one of the powerful, high-level, easy to learn programming language that
provides a huge number of applications. Some of its features, such as being object-oriented
and open source, having numerous IDE’s, etc. make it one of the most in-demand
programming languages of the present IT industry.
According to TIOBE index, as of January 2020, Python is one of the popular programming
languages. By looking at the popularity of this programming language, many IT
professionals, both beginners as well as experienced alike, are willing to build their career
as a Python developer
Explains what is a Set and Dictionary. Explains various operations on Set, Set class methods for manipulation and frozensets. Explains various Dictionary class methods and their usage, use of iterators in Dictionary and use of for loop in dictionary
Explains how to create a List in Python. Explains various operations that can be performed on Lists. Discusses various List class methods that can be used to manipulate the Lists. Explains what is a Tuple how to create it and various function that can be used on Tuples. Explains difference between List and Tuple
Explains various types of branching and looping structures in Python. Explain how to use for loop with sequences and with range() function. Explains how to skip an iteration in a loop. and how to terminate a loop using break statement
What is an Operator? Explains various types of Operators present in Python programming language. Various types of Assignments in Python. Formatting the output in Python.
Teaches what is Data science? Who is Data Scientist? Qualifications required to become a Data Scientist. Responsibilities of Data Scientist. Advantages of Data Science, Roles in Data Science project, Python libraries for Data Science Big Data vs Data Science
Provides information about Threads in Java. different ways of creating and running the thread and also provides the information about Life Cycle of the Thread
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...SOFTTECHHUB
The choice of an operating system plays a pivotal role in shaping our computing experience. For decades, Microsoft's Windows has dominated the market, offering a familiar and widely adopted platform for personal and professional use. However, as technological advancements continue to push the boundaries of innovation, alternative operating systems have emerged, challenging the status quo and offering users a fresh perspective on computing.
One such alternative that has garnered significant attention and acclaim is Nitrux Linux 3.5.0, a sleek, powerful, and user-friendly Linux distribution that promises to redefine the way we interact with our devices. With its focus on performance, security, and customization, Nitrux Linux presents a compelling case for those seeking to break free from the constraints of proprietary software and embrace the freedom and flexibility of open-source computing.
Removing Uninteresting Bytes in Software FuzzingAftab Hussain
Imagine a world where software fuzzing, the process of mutating bytes in test seeds to uncover hidden and erroneous program behaviors, becomes faster and more effective. A lot depends on the initial seeds, which can significantly dictate the trajectory of a fuzzing campaign, particularly in terms of how long it takes to uncover interesting behaviour in your code. We introduce DIAR, a technique designed to speedup fuzzing campaigns by pinpointing and eliminating those uninteresting bytes in the seeds. Picture this: instead of wasting valuable resources on meaningless mutations in large, bloated seeds, DIAR removes the unnecessary bytes, streamlining the entire process.
In this work, we equipped AFL, a popular fuzzer, with DIAR and examined two critical Linux libraries -- Libxml's xmllint, a tool for parsing xml documents, and Binutil's readelf, an essential debugging and security analysis command-line tool used to display detailed information about ELF (Executable and Linkable Format). Our preliminary results show that AFL+DIAR does not only discover new paths more quickly but also achieves higher coverage overall. This work thus showcases how starting with lean and optimized seeds can lead to faster, more comprehensive fuzzing campaigns -- and DIAR helps you find such seeds.
- These are slides of the talk given at IEEE International Conference on Software Testing Verification and Validation Workshop, ICSTW 2022.
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Albert Hoitingh
In this session I delve into the encryption technology used in Microsoft 365 and Microsoft Purview. Including the concepts of Customer Key and Double Key Encryption.
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024Neo4j
Neha Bajwa, Vice President of Product Marketing, Neo4j
Join us as we explore breakthrough innovations enabled by interconnected data and AI. Discover firsthand how organizations use relationships in data to uncover contextual insights and solve our most pressing challenges – from optimizing supply chains, detecting fraud, and improving customer experiences to accelerating drug discoveries.
Maruthi Prithivirajan, Head of ASEAN & IN Solution Architecture, Neo4j
Get an inside look at the latest Neo4j innovations that enable relationship-driven intelligence at scale. Learn more about the newest cloud integrations and product enhancements that make Neo4j an essential choice for developers building apps with interconnected data and generative AI.
Unlocking Productivity: Leveraging the Potential of Copilot in Microsoft 365, a presentation by Christoforos Vlachos, Senior Solutions Manager – Modern Workplace, Uni Systems
Communications Mining Series - Zero to Hero - Session 1DianaGray10
This session provides introduction to UiPath Communication Mining, importance and platform overview. You will acquire a good understand of the phases in Communication Mining as we go over the platform with you. Topics covered:
• Communication Mining Overview
• Why is it important?
• How can it help today’s business and the benefits
• Phases in Communication Mining
• Demo on Platform overview
• Q/A
In his public lecture, Christian Timmerer provides insights into the fascinating history of video streaming, starting from its humble beginnings before YouTube to the groundbreaking technologies that now dominate platforms like Netflix and ORF ON. Timmerer also presents provocative contributions of his own that have significantly influenced the industry. He concludes by looking at future challenges and invites the audience to join in a discussion.
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfPaige Cruz
Monitoring and observability aren’t traditionally found in software curriculums and many of us cobble this knowledge together from whatever vendor or ecosystem we were first introduced to and whatever is a part of your current company’s observability stack.
While the dev and ops silo continues to crumble….many organizations still relegate monitoring & observability as the purview of ops, infra and SRE teams. This is a mistake - achieving a highly observable system requires collaboration up and down the stack.
I, a former op, would like to extend an invitation to all application developers to join the observability party will share these foundational concepts to build on:
GridMate - End to end testing is a critical piece to ensure quality and avoid...ThomasParaiso2
End to end testing is a critical piece to ensure quality and avoid regressions. In this session, we share our journey building an E2E testing pipeline for GridMate components (LWC and Aura) using Cypress, JSForce, FakerJS…
Sudheer Mechineni, Head of Application Frameworks, Standard Chartered Bank
Discover how Standard Chartered Bank harnessed the power of Neo4j to transform complex data access challenges into a dynamic, scalable graph database solution. This keynote will cover their journey from initial adoption to deploying a fully automated, enterprise-grade causal cluster, highlighting key strategies for modelling organisational changes and ensuring robust disaster recovery. Learn how these innovations have not only enhanced Standard Chartered Bank’s data infrastructure but also positioned them as pioneers in the banking sector’s adoption of graph technology.
In the rapidly evolving landscape of technologies, XML continues to play a vital role in structuring, storing, and transporting data across diverse systems. The recent advancements in artificial intelligence (AI) present new methodologies for enhancing XML development workflows, introducing efficiency, automation, and intelligent capabilities. This presentation will outline the scope and perspective of utilizing AI in XML development. The potential benefits and the possible pitfalls will be highlighted, providing a balanced view of the subject.
We will explore the capabilities of AI in understanding XML markup languages and autonomously creating structured XML content. Additionally, we will examine the capacity of AI to enrich plain text with appropriate XML markup. Practical examples and methodological guidelines will be provided to elucidate how AI can be effectively prompted to interpret and generate accurate XML markup.
Further emphasis will be placed on the role of AI in developing XSLT, or schemas such as XSD and Schematron. We will address the techniques and strategies adopted to create prompts for generating code, explaining code, or refactoring the code, and the results achieved.
The discussion will extend to how AI can be used to transform XML content. In particular, the focus will be on the use of AI XPath extension functions in XSLT, Schematron, Schematron Quick Fixes, or for XML content refactoring.
The presentation aims to deliver a comprehensive overview of AI usage in XML development, providing attendees with the necessary knowledge to make informed decisions. Whether you’re at the early stages of adopting AI or considering integrating it in advanced XML development, this presentation will cover all levels of expertise.
By highlighting the potential advantages and challenges of integrating AI with XML development tools and languages, the presentation seeks to inspire thoughtful conversation around the future of XML development. We’ll not only delve into the technical aspects of AI-powered XML development but also discuss practical implications and possible future directions.
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
How to Get CNIC Information System with Paksim Ga.pptxdanishmna97
Pakdata Cf is a groundbreaking system designed to streamline and facilitate access to CNIC information. This innovative platform leverages advanced technology to provide users with efficient and secure access to their CNIC details.
How to Get CNIC Information System with Paksim Ga.pptx
Python Basics.pptx
1.
2. M Vishnuvardhan
Why Python ..?
» Python works on different platforms.
» Python has a simple syntax similar to the English language.
» Python has fewer lines than some other languages.
» Python runs on an interpreter system.
» Python can be treated in a procedural way, an object-
orientated way or a functional way.
3. M Vishnuvardhan
C, C++, Java VS Python
C C++ JAVA PYTHON
Language Type Procedure Oriented Object Oriented Object Oriented
Both Procedure and
Object Oriented
Building Block Function Driven Object Driven
Both Object and
Class Driven
Function, Object and
Class driven
Extension .c .cpp .java .py
Platform Dependent Independent Independent Independent
Comment Style /* Multi Line */
//Single Line
/*Multi Line*/
//Single Line
/*Multi Line*/
#Single Line
" " " Multi-line " " "
Translator Type Compiled Compiled
Compiled &
Interpreted
Interpreted
Database Connectivity not supported not supported Supported Supported
Representing Block of
Statements
{ } { } { } Indentation
Declaring Variables Required Required Required Not Required
Applications
Compilers,
Interpreters,
Embedded
Programming etc.,
Simple desktop
applications,
Embedded Systems
etc.,
Desktop GUI, Mobile,
Web, Gaming etc.,
Desktop, Web,
Gaming, Network
Programming etc.,
Editors/ IDE Turbo C, Code Blocks
Turbo C++, Code
Blocks
Ecllipse, Netbeans
PyCharm, PyDev,
IDLE, Jupyter
Notebook, Spyder,
VS Code
4. M Vishnuvardhan
History of Python
»Python was developed by Guido van Rossum in early 90’s
@ National Research Institute for Mathematics and
Computer Science in the Netherlands.
»Python is derived from many other languages, including
ABC, Modula-3, C, C++, Algol-68, Small Talk, and Unix
shell and other scripting languages.
5. M Vishnuvardhan
History of Python
» Python released 3 major versions
» Python 1.0
» Python 2.0
» Python 3.0
» Python Timeline
6. M Vishnuvardhan
Features of Python
»Easy-to-learn.
»Easy-to-read.
»Easy-to-maintain.
»Free and Open source.
»Object Oriented.
»Large Standard library(200+)
»High level Interpreted.
»Integrated language.
»Versatile.
»Dynamically Typed
»Portable.
»Extendable.
»Databases.
»GUI Programming.
8. M Vishnuvardhan
Applications of Python
» Web & Internet Development
» Desktop GUI Applications
» Artificial Intelligence
» Machine Learning
» Image Processing
Applications
» Business Applications
» Games & 3D Graphics
» Network Programming
» Data base Access
10. M Vishnuvardhan
Getting Started with Python
» Python is an open source and can be download from
https://www.python.org/
» Download and install it.
» Python can be accessed in command mode or with Python
Integrated Development and Learning Environment (IDLE)
» Python programs can also be developed using Integrated
Development Environments (IDE).
11. M Vishnuvardhan
Popular Python IDE
IDE provides variety of features like
» Syntax highlighting
» error checking
» smart typing
» Multiple version support
» Debugging tools
12. M Vishnuvardhan
Python keywords
False class finally is return
None continue for lambda try
True def from nonlocal while
and del global not with
as elif if or yield
assert else import pass
break except in raise
13. M Vishnuvardhan
Identifiers in Python
Identifiers are user defined names given to classes, functions,
variables etc., Rules for creating Identifiers
» Should be Short and meaningful
» Alphanumeric both upper and lowercase (A-Z, a-z, 0-9)
» No special chars except underscore (_)
» First character must not be a digit
» It should not be a keyword
» It can be of any length
» Python is a case sensitive language
14. M Vishnuvardhan
Naming Conventions
» Class names start with an uppercase letter.
» All other identifiers start with a lowercase letter.
» Starting an identifier with a single leading underscore indicates
that the identifier is private.
» Starting an identifier with two leading underscores indicates a
strongly private identifier.
» If the identifier also ends with two trailing underscores, the
identifier is a language-defined special name.
15. M Vishnuvardhan
Blocks and Indentation
» Indentation refers to the spaces at the beginning of a code line.
» Where in other programming languages the indentation in code is for
readability only, the indentation in Python is very important.
» Python uses indentation to indicate a block of code.
» You have to use the same number of spaces in the same block of code,
otherwise Python will give you an error
Eg: if 5 > 2:
print("Five is greater than two!")
Below statement gives error
if 5 > 2:
print("Five is greater than two!")
16. M Vishnuvardhan
Python Comments
» Comments can be used to explain Python code.
» Comments can be used to make the code more readable.
» Comments can be used to prevent execution when testing code.
» Comments starts with a #, and Python will ignore them
» Using triple double quotes or triple single quotes can create a
multiline comment
Eg: #This is a comment
""" This is a comment
written in more than just one line """
17. M Vishnuvardhan
docstring
» Docstring is short for documentation string that occurs at the first
statement in a module, function, class or method definition.
Eg: def cube(num)
""" Functions used to find the cube of number"""
return (num*num*num);
Docstring can be accessed using attribute __doc__ of the function.
Eg: print(cube.__doc__)
Prints Functions used to find the cube of number
18. M Vishnuvardhan
Python variables
» Variables are containers for storing data values.
» Python has no command for declaring a variable.
» A variable is created the moment you first assign a value to it
x = 5
y = "John"
print(x)
print(y)
» Variables can change type after they have been set.
Eg: x = 5
x = "John"
print(x)
19. M Vishnuvardhan
Assignments in Python
» Values are assigned to variables using assignment operator.
Eg: x = 5
print(x)
» Python allows to assign values to multiple variables in one line
Eg: x ,y ,z = 5 ,”John” , 56.36
» Python allows to assign the same value to multiple variables.
Eg: x = y = z = 5
20. M Vishnuvardhan
Python Statements - print
» Python print() function is often used to output variables.
Eg: x = "Python is awesome"
print(x)
» In the print() function, you output multiple variables, separated
by a comma
Eg: x = "Python" y = "is" z = "awesome"
print(x, y, z)
21. M Vishnuvardhan
When we run a Python program, two steps happen
»The code gets converted to another representation called ‘Byte Code’
»‘Byte Code’ gets converted to Machine Code (which is understandable by the
computer)
Python Virtual machine – PVM
22. M Vishnuvardhan
Python Virtual machine – PVM
» The second step is being done by PVM or Python Virtual Machine. So PVM
is nothing but a software/interpreter that converts the byte code to
machine code for given operating system.
» PVM is also called Python Interpreter and this is the reason Python is
called an Interpreted language.
» We can’t see the Byte Code of the program because this happens
internally in memory.
» To get the byte code use –m D:> python -m Sample.py
» Creates a pyc file consisting Bytecode