This document provides an introduction to Python programming language. It discusses what Python is, its features, applications, and how it compares to compiled languages in terms of compiling versus interpreting. It also covers installing Python, different Python environments like the Python shell, IDLE, Jupyter Notebook, and Anaconda. Basic Python concepts like variables, data types, operators, functions, modules, and math module commands are explained. The reader is instructed to install NumPy and SciPy using conda for the next lab and test the installations.
Python is a high-level, interpreted, interactive and object-oriented scripting language. It is designed to be highly readable using English keywords. Python is interpreted at runtime and does not require compilation. It supports both procedural and object-oriented programming. Python is beginner friendly and supports a wide range of applications. It is portable, extensible, and has a large standard library. Variables are dynamically typed and support integers, floating point numbers, complex numbers, strings, lists, tuples and dictionaries.
This document provides an overview of Python basics training. It covers installing Python, running Python code through various methods like the command line, IDLE, and Jupyter notebooks. It also discusses Python syntax, variables, data types, operators, conditional statements, and loops. Key Python data types include integers, floats, strings, lists, and dictionaries. The document is intended as an introduction to Python for beginners.
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
4_Introduction to Python Programming.pptxGnanesh12
油
This document provides an introduction to Python programming. It discusses the fundamentals of computing and problem solving, including algorithms and pseudocodes. It then describes the history and development of the Python programming language. Key features of Python like being easy to learn, cross-platform, and having a large standard library are outlined. Different modes of running Python like interactive and script modes are explained. Finally, it covers basic Python concepts like data types, values, variables, and statements.
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.
This document provides information about Jupyter Notebook, including:
- Jupyter Notebook is an open-source web application for creating and sharing documents containing live code, equations, visualizations, and narrative text.
- It works locally on localhost port 8888 and the easiest way to install it is through Anaconda which includes Jupyter Notebook and popular Python libraries.
- Notebooks use kernels to run code in different programming languages, with IPython being the default Python kernel.
Kosmik is the best institute for Python training in Hyderabad Kukatpally/KPHB. kosmik provides lab facilities with complete real-time training with live sessions
call now: +91-8712186898, +91-8179496603, +91-6309565721
This tutorial provides an introduction to the Python programming language. It will cover Python's core features like syntax, data types, operators, conditional and loop execution, functions, modules and packages to enable writing basic programs. The tutorial is intended for learners to learn Python together through questions, discussions and pointing out mistakes.
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.
The document provides an introduction to Python programming, including details about Python's history, versions, data types, strings, and code execution. It discusses how to install Python and write basic programs. Key reasons for using Python are its object-oriented nature, readability, large standard library, cross-platform capabilities, and ease of use. The document also covers string methods and slicing, numeric data types, installing Python, and running code in interactive and script modes.
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
Introduction to Python and Basic Syntax
Understand the basics of Python programming.
Set up the Python environment.
Write simple Python scripts
Python is a high-level, interpreted programming language known for its readability and versatility(easy to read and easy to use). It can be used for a wide range of applications, from web development to scientific computing
This document provides an introduction to variables and operators in the Python programming language. It defines key concepts like variables, data types, operators, functions, and more. It explains how to work with input and output functions like print() and input() in Python. It also covers comments, indentation, tokens, identifiers, keywords, literals and other essential building blocks of the Python language. The document is intended as a lesson for a 12th computer science class to learn the basics of variables and operators in Python.
This presentation provides an in-depth analysis of structural quality control in the KRP 401600 section of the Copper Processing Plant-3 (MOF-3) in Uzbekistan. As a Structural QA/QC Inspector, I have identified critical welding defects, alignment issues, bolting problems, and joint fit-up concerns.
Key topics covered:
Common Structural Defects Welding porosity, misalignment, bolting errors, and more.
Root Cause Analysis Understanding why these defects occur.
Corrective & Preventive Actions Effective solutions to improve quality.
Team Responsibilities Roles of supervisors, welders, fitters, and QC inspectors.
Inspection & Quality Control Enhancements Advanced techniques for defect detection.
Applicable Standards: GOST, KMK, SNK Ensuring compliance with international quality benchmarks.
This presentation is a must-watch for:
QA/QC Inspectors, Structural Engineers, Welding Inspectors, and Project Managers in the construction & oil & gas industries.
Professionals looking to improve quality control processes in large-scale industrial projects.
Download & share your thoughts! Let's discuss best practices for enhancing structural integrity in industrial projects.
Categories:
Engineering
Construction
Quality Control
Welding Inspection
Project Management
Tags:
#QAQC #StructuralInspection #WeldingDefects #BoltingIssues #ConstructionQuality #Engineering #GOSTStandards #WeldingInspection #QualityControl #ProjectManagement #MOF3 #CopperProcessing #StructuralEngineering #NDT #OilAndGas
More Related Content
Similar to Lecture1_introduction to python.pptx (20)
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
4_Introduction to Python Programming.pptxGnanesh12
油
This document provides an introduction to Python programming. It discusses the fundamentals of computing and problem solving, including algorithms and pseudocodes. It then describes the history and development of the Python programming language. Key features of Python like being easy to learn, cross-platform, and having a large standard library are outlined. Different modes of running Python like interactive and script modes are explained. Finally, it covers basic Python concepts like data types, values, variables, and statements.
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.
This document provides information about Jupyter Notebook, including:
- Jupyter Notebook is an open-source web application for creating and sharing documents containing live code, equations, visualizations, and narrative text.
- It works locally on localhost port 8888 and the easiest way to install it is through Anaconda which includes Jupyter Notebook and popular Python libraries.
- Notebooks use kernels to run code in different programming languages, with IPython being the default Python kernel.
Kosmik is the best institute for Python training in Hyderabad Kukatpally/KPHB. kosmik provides lab facilities with complete real-time training with live sessions
call now: +91-8712186898, +91-8179496603, +91-6309565721
This tutorial provides an introduction to the Python programming language. It will cover Python's core features like syntax, data types, operators, conditional and loop execution, functions, modules and packages to enable writing basic programs. The tutorial is intended for learners to learn Python together through questions, discussions and pointing out mistakes.
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.
The document provides an introduction to Python programming, including details about Python's history, versions, data types, strings, and code execution. It discusses how to install Python and write basic programs. Key reasons for using Python are its object-oriented nature, readability, large standard library, cross-platform capabilities, and ease of use. The document also covers string methods and slicing, numeric data types, installing Python, and running code in interactive and script modes.
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
Introduction to Python and Basic Syntax
Understand the basics of Python programming.
Set up the Python environment.
Write simple Python scripts
Python is a high-level, interpreted programming language known for its readability and versatility(easy to read and easy to use). It can be used for a wide range of applications, from web development to scientific computing
This document provides an introduction to variables and operators in the Python programming language. It defines key concepts like variables, data types, operators, functions, and more. It explains how to work with input and output functions like print() and input() in Python. It also covers comments, indentation, tokens, identifiers, keywords, literals and other essential building blocks of the Python language. The document is intended as a lesson for a 12th computer science class to learn the basics of variables and operators in Python.
This presentation provides an in-depth analysis of structural quality control in the KRP 401600 section of the Copper Processing Plant-3 (MOF-3) in Uzbekistan. As a Structural QA/QC Inspector, I have identified critical welding defects, alignment issues, bolting problems, and joint fit-up concerns.
Key topics covered:
Common Structural Defects Welding porosity, misalignment, bolting errors, and more.
Root Cause Analysis Understanding why these defects occur.
Corrective & Preventive Actions Effective solutions to improve quality.
Team Responsibilities Roles of supervisors, welders, fitters, and QC inspectors.
Inspection & Quality Control Enhancements Advanced techniques for defect detection.
Applicable Standards: GOST, KMK, SNK Ensuring compliance with international quality benchmarks.
This presentation is a must-watch for:
QA/QC Inspectors, Structural Engineers, Welding Inspectors, and Project Managers in the construction & oil & gas industries.
Professionals looking to improve quality control processes in large-scale industrial projects.
Download & share your thoughts! Let's discuss best practices for enhancing structural integrity in industrial projects.
Categories:
Engineering
Construction
Quality Control
Welding Inspection
Project Management
Tags:
#QAQC #StructuralInspection #WeldingDefects #BoltingIssues #ConstructionQuality #Engineering #GOSTStandards #WeldingInspection #QualityControl #ProjectManagement #MOF3 #CopperProcessing #StructuralEngineering #NDT #OilAndGas
Integration of Additive Manufacturing (AM) with IoT : A Smart Manufacturing A...ASHISHDESAI85
油
Combining 3D printing with Internet of Things (IoT) enables the creation of smart, connected, and customizable objects that can monitor, control, and optimize their performance, potentially revolutionizing various industries. oT-enabled 3D printers can use sensors to monitor the quality of prints during the printing process. If any defects or deviations from the desired specifications are detected, the printer can adjust its parameters in real time to ensure that the final product meets the required standards.
Preface: The ReGenX Generator innovation operates with a US Patented Frequency Dependent Load Current Delay which delays the creation and storage of created Electromagnetic Field Energy around the exterior of the generator coil. The result is the created and Time Delayed Electromagnetic Field Energy performs any magnitude of Positive Electro-Mechanical Work at infinite efficiency on the generator's Rotating Magnetic Field, increasing its Kinetic Energy and increasing the Kinetic Energy of an EV or ICE Vehicle to any magnitude without requiring any Externally Supplied Input Energy. In Electricity Generation applications the ReGenX Generator innovation now allows all electricity to be generated at infinite efficiency requiring zero Input Energy, zero Input Energy Cost, while producing zero Greenhouse Gas Emissions, zero Air Pollution and zero Nuclear Waste during the Electricity Generation Phase. In Electric Motor operation the ReGen-X Quantum Motor now allows any magnitude of Work to be performed with zero Electric Input Energy.
Demonstration Protocol: The demonstration protocol involves three prototypes;
1. Protytpe #1, demonstrates the ReGenX Generator's Load Current Time Delay when compared to the instantaneous Load Current Sine Wave for a Conventional Generator Coil.
2. In the Conventional Faraday Generator operation the created Electromagnetic Field Energy performs Negative Work at infinite efficiency and it reduces the Kinetic Energy of the system.
3. The Magnitude of the Negative Work / System Kinetic Energy Reduction (in Joules) is equal to the Magnitude of the created Electromagnetic Field Energy (also in Joules).
4. When the Conventional Faraday Generator is placed On-Load, Negative Work is performed and the speed of the system decreases according to Lenz's Law of Induction.
5. In order to maintain the System Speed and the Electric Power magnitude to the Loads, additional Input Power must be supplied to the Prime Mover and additional Mechanical Input Power must be supplied to the Generator's Drive Shaft.
6. For example, if 100 Watts of Electric Power is delivered to the Load by the Faraday Generator, an additional >100 Watts of Mechanical Input Power must be supplied to the Generator's Drive Shaft by the Prime Mover.
7. If 1 MW of Electric Power is delivered to the Load by the Faraday Generator, an additional >1 MW Watts of Mechanical Input Power must be supplied to the Generator's Drive Shaft by the Prime Mover.
8. Generally speaking the ratio is 2 Watts of Mechanical Input Power to every 1 Watt of Electric Output Power generated.
9. The increase in Drive Shaft Mechanical Input Power is provided by the Prime Mover and the Input Energy Source which powers the Prime Mover.
10. In the Heins ReGenX Generator operation the created and Time Delayed Electromagnetic Field Energy performs Positive Work at infinite efficiency and it increases the Kinetic Energy of the system.
Engineering at Lovely Professional University (LPU).pdfSona
油
LPUs engineering programs provide students with the skills and knowledge to excel in the rapidly evolving tech industry, ensuring a bright and successful future. With world-class infrastructure, top-tier placements, and global exposure, LPU stands as a premier destination for aspiring engineers.
. マ留 裡留略龍侶: Foundation Analysis and Design: Single Piles
Welcome to this comprehensive presentation on "Foundation Analysis and Design," focusing on Single PilesStatic Capacity, Lateral Loads, and Pile/Pole Buckling. This presentation will explore the fundamental concepts, equations, and practical considerations for designing and analyzing pile foundations.
We'll examine different pile types, their characteristics, load transfer mechanisms, and the complex interactions between piles and surrounding soil. Throughout this presentation, we'll highlight key equations and methodologies for calculating pile capacities under various conditions.
1. Eng. Mohammed AL-Yemeni
Winter-2022
Modern Specialized College
Faculty of Engineering
Mechatronics Engineering Department
4th Level
Practical Lab
Lab 1- Introduction to Python Programming
Language
2. What is Python?
Python is a popular high-level programming language.
It can handle various programming tasks such as numerical
computation, web development, database programming, network
programming, parallel processing, etc.
Official website: http://www.python.org
Python official documentation: http://docs.python.org/
3. Python Features
Python is popular for various reasons including:
It is free.
Available on all the popular operating systems such as Windows, Mac or
Linux.
It is an interpreted language (no need for compiling or linking).
Highly readable and easier to debug. It gives the ability to program faster.
Programs written in Python can be run on various OS or platforms with
little or no change.
It is a dynamically typed language (No need for declaration)
It has a dedicated developer and user community and is kept up to date.
Used in Raspberry pi programming.
4. Python Applications
Web Development and Gaming
Cyber Security and Networks
Artificial Intelligent
Internet of Things
Automation
Data Science
5. Python: Compiling VS Interpreting
Python is interpreted high-level language
Many languages require you to compile (translate) your program into a
form that the machine understands.
Python is instead directly interpreted into machine instructions.
6. Python Environments
Python Shell running 'python' from the Command Line opens this
interactive shell
Python IDLE is an Integrated Development Environment for Python,
typically used on Windows, Multi-window text editor with syntax
highlighting, auto-completion, smart indent and other.
The Jupyter Notebook is an interactive computing environment that
enables users to author notebook documents that include: -Live code -
Interactive widgets -Plots -Narrative text -Equations -Images -Video
Pycharm
Anaconda
11. Anaconda
conditional free and open-source distribution of the Python programming
languages for scientific computing (data science, machine learning
applications, large-scale data processing, predictive analytics, etc.), that
aims to simplify package management and deployment.
13. Installing Jupyter Notebook
Prerequisite: Python
While Jupyter runs code in many programming languages, Python is a requirement (Python 3.3 or
greater, or Python 2.7) for installing the Jupyter Notebook.
14. Installing Jupyter using Anaconda and conda
Use the following installation steps:
Download Anaconda. We recommend downloading Anacondas latest
Python 3 version (currently Python 3.5).
Install the version of Anaconda which you downloaded, following the
instructions on the download page.
15. Print
print: Produces text output on the console.
Syntax:
print ("Message") print (Expression)
Prints the given text message or expression value on the console, and moves the
cursor down to the next line.
print (Item1, Item2, ..., ItemN)
Prints several messages and/or expressions on the same line.
Examples:
Code:
age = 45
print ("You have", 65 -age, "years until retirement)
Output:
You have 20 years until retirement
16. User Input
input: Reads a number from user input.
We can instruct Python to pause and read data from the user using the input()
function
You can assign (store) the result of input into a variable.
The input() function returns a string
Example:
Code:
name = input('Who are you?')
print('Welcome', name)
Output:
Who are you? Ali
Welcome Ali
17. String Conversions
You can also use int() and float() to convert between strings and integers
>>> x = '123'
>>> type(x)
<class 'str> >>> x = int(x)
>>> type(x)
<class 'int'>
You will get an error if the string does not contain numeric characters
18. Variables, Expressions, and Statements
Fixed values such as numbers, letters, and
strings, are called constants because
their value does not change
Numeric constants are as you expect
String constants use single quotes (') or
double quotes (")
19. Reserved Words
You cannot use reserved words as variable names / identifiers
20. Variables
A variable is a named place in the memory where a programmer can
store data and later retrieve the data using the variable name.
Programmers get to choose the names of the variables.
You can change the contents of a variable in a later statement.
21. Basic Python Statements and Data Types (Cont.)
Variables
Python is a dynamic language and hence you do not need to specify the
variable type as in C/C++.
The values can be an integer, float, string, lists, tuples, dictionary, set,
etc.
>>> a = 1 #integer
>>> a = 10.0 #float
>>> a = hello # String
22. Basic Python Statements and Data Types (Cont.)
Comments
All code should contain comments that describe what it
does
In Python, lines beginning with a # sign are comment lines
You can also have comments on the same line as a
statement
# This entire line is a comment
x=5# Set up loop counter
For multiline comments, use """triple quotes"""
23. Type Conversions
When you put an integer and
floating point in an expression,
the integer is implicitly
converted to a float.
You can control this with the
built-in functions int() and
float()
>>> print(float(99) + 100)
199.0
>>> i = 42
>>> type(i)
<class'int'>
>>> f = float(i)
>>> print(f)
42.0
>>> type(f)
<class'float'>
24. Exercise
Write a program to prompt the user for hours and rate per
hour to compute gross pay.
Enter Hours: 35
Enter Rate: 2.75
Pay: 96.25
25. Basic Python Statements and Data Types (Cont.)
if-else statement
All code should contain comments that describe what it does
if a<10 :
print(a is less than 10)
elif if a<20 :
print(a is between 10 and 20)
else:
print(a is greater than 20)
26. Basic Python Statements and Data Types (Cont.)
for Loop: Repeats a set of statements over a group of values.
Syntax:
for variableName in groupOfValues :
statements
We indent the statements to be repeated with tabs or spaces.
variableName gives a name to each value, so you can refer to it in the statements.
groupOfValues can be a range of integers, specified with the range function.
Example:
for x in range(1, 6):
print (x, "squared is", x * x)
Output:
1 squared is 1
2 squared is 4
3 squared is 9
4 squared is 16
5 squared is 25
29. Modules
Modules are additional pieces of code that further extend Pythons
functionality
A module typically has a specific functionality
import module:
import fibo
Can import specific methods from module:
from fibo import fib, fib2
Can import all names defined by module:
from fiboi mport *
30. Math Module Commands
Python has useful commands for performing calculations.
To use many of these commands, you must write the following at the top of your Python
program:
from math import *
31. For the next lab
Make sure Anaconda packages are installed properly
Install NUMPY using the anaconda prompt
conda install numpy
When finished, run Juyter notebook and test the installation of
numpy using importing it and performing any operation
32. For the next lab
Make sure Anaconda packages are installed properly
Install scipy using the anaconda prompt
conda install scipy
When finished, run Juyter notebook and test the installation of scipy
using importing it and performing any operation
using the import
Import scipy
#9: What is Anaconda python ?
It is a free and open source distribution of python and R programming languages.
Used for scientific computing (data science, machine learning applications ,large scale data processing , predictive analytics, etc).
It aims to simplify package management and deployment.
It includes more than 1500 packages suitable for windows, Linux and macos.
#27: Exercise
Print even numbers from a range you specify
#29: Remember: = is used for assignment.
Boolean expressions ask a question and produce a Yes or No result which we use to control program flow
Boolean expressions using comparison operators evaluate to True / False or Yes / No
Comparison operators look at variables but do not change the variables