SlideShare une entreprise Scribd logo
1  sur  74
Python
Artificial Intelligence
Machine Learning
Deep Learning
The Next Big Thing
Sourabh Sahu
Why Python?
• most popular language for Data Scientists worldwide
• Python tops the list of the most popular programming
languages in 2018
• Object-Oriented
• Dynamic Type Checking makes it inherently generic – C++
templates for free!
• Free, as in Open Source free
• Portable
• Powerful language constructs / features
• Powerful toolkit / library
• Mixable with other languages
• Easy to use & learn
What you can do with Python?
Python Job Profiles
•Software Engineer
•Python Developer
•Research Analyst
•Data Analyst
•Data Scientist
•Software Developer
Salary & Renumeration
Popularity
41 large organizations in the world have adopted Python as their primary
programming language in a very small span of time. Some of the big players
like Quora
• Facebook
• YouTube
• SlideShare
• Dropbox
• Pinterest
• Reddit
• Netflix
have most of their new code written in Python.
Machine Learning
Artificial Intelligence
AI & VL
AI/ML/SLs
Big Data
Face Recognition
Single Dimensional
Linear /non linear
Recognizing digits
What else?
features
1. Open Source
2. Quick to Learn
3. Simple to read and understand
4. Powerful
5. Ubiquitous
6. Object Oriented +Procedural
7. Dynamically Type
8. Strongly Type
9. Wide space delimited [indentation]
10. Interpreted
Types
1. Cypthon
2. Jython
3. Iron python
4. PyPy
Unbiquitious
1. Web Scripting [Django]
2. 3 D modeling [Blender]
3. Desktop Applications [eg drop box]
4. Games [PyGames]
5. Scientific [PySci]
PEP
1. Python Enhance Program
2. Community
3. Guidelines
4. PEP0—Index of PEP
5. PEP1—purpose of PEP
6. PEP8 --style
7. PEP20—design
8. Import shell
History
1. Python was conceived in the late 1980s by Guido van Rossum
2. at Centrum Wiskunde & Informatica (CWI) in the Netherlands as a
successor to the ABC language (itself inspired by SETL), capable
of exception handling and interfacing with the Amoeba operating system.
3. Its implementation began in December 1989.
4. 1991 first released
5. Community
6. Van Rossum led the language community until stepping down as leader in
July 2018
7. Python Software Foundation.
Python
1. Python 2 /Python 3
2. Python 2 : legacy
3. Python 3 : new and in use
4. ----------------------------------------------------------------------------
5. Python 3.7.2
6. Python 2.7
Installation
Important: You want to be sure to check the box that says Add Python 3.x to PATH as shown to
ensure that the interpreter will be placed in your execution path.
Then just click Install Now. That should be all there is to it. A few minutes later you should have a working Python 3 installation on your system.
LINUX
Linux
There is a very good chance your Linux distribution has Python installed already, but it probably won’t be
the latest version, and it may be Python 2 instead of Python 3.
To find out what version(s) you have, open a terminal window and try the following commands:
•python --version
•python2 --version
•python3 --version
One or more of these commands should respond with a version, as below:
$ python3 --version Python 3.6.5
If the version shown is Python 2.x.x or a version of Python 3 that is not the latest (3.6.5 as of this writing),
then you will want to install the latest version. The procedure for doing this will depend on the Linux
distribution you are running.
Note that it is frequently easier to use a tool called pyenv to manage multiple Python versions on Linux. To
learn more about it, see our article here.
Ubuntu
Depending on the version of the Ubuntu distribution you run, the Python install instructions vary. You can determine your local Ubuntu version by running the
following command:
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.4 LTS Release: 16.04 Codename: xenial
Depending on the version number you see under Release in the console output, follow the instructions below:
•Ubuntu 17.10, Ubuntu 18.04 (and above) come with Python 3.6 by default. You should be able to invoke it with the command python3.
•Ubuntu 16.10 and 17.04 do not come with Python 3.6 by default, but it is in the Universe repository. You should be able to install it with the following commands:
$ sudo apt-get update $ sudo apt-get install python3.6
You can then invoke it with the command python3.6.
•If you are using Ubuntu 14.04 or 16.04, Python 3.6 is not in the Universe repository, and you need to get it from a Personal Package Archive (PPA). For
example, to install Python from the “deadsnakes” PPA, do the following:
$ sudo add-apt-repository ppa:deadsnakes/ppa $ sudo apt-get update $ sudo apt-get install python3.6
As above, invoke with the command python3.6.
LINUX
LINUX
Starting python
IDLE
>>> name=input('What is your name? ')
What is your name? Sourabh
>>> name
'Sourabh'
>>>
USER INPUT
Help(function name)
Help(input)
HELP
>>> name=input('What is your name? ‘)
What is your name? Sourabh
>>> name
'Sourabh'
>>> help(input)
Help on built-in function input in module builtins:
input(...)
input([prompt]) -> string
Read a string from standard input. The trailing newline is stripped.
If the user hits EOF (Unix: Ctl-D, Windows: Ctl-Z+Return), raise EOFError.
On Unix, GNU readline is used if enabled. The prompt string, if given,
Concatenation
Modules
print("Learning imports and modules")
print(dir())
import math
print(dir())
print("Value of pi ",math.pi)
print("value of tan 1 ",math.tan(1))
del(math)
import math as mymaths
print(dir())
print("Value of pi ",mymaths.pi)
print("value of tan 1 ",mymaths.tan(1))
del(mymaths)
from math import pi,tan
print(dir())
print("Value of pi ",pi)
print("value of tan 1 ",tan(1))
del(pi)
del(tan)
from math import pi as pie,tan as tangent
print(dir())
print("Value of pi ",pie)
print("value of tan 1 ",tangent(1))
del(pie)
del(tangent)
Importing module
from math import pi
radius=input("What is the radius of circle? ")
print("Area of the circle",float(radius)**2*pi)
print("Circumference",2*pi*float(radius))
Commenting #
x=5
y=10
z=0xA #hexadecimal
t=0o12 #octal
w=0b1011 #binary
print("x",x,"y",y,"hex",z,"octal",t,"binary",w)
###########################################
####################
########COMPARISONS########################
###
print("x==y",x==y)
print("x!=y",x!=y)
print("x>=y",x>=y)
print("x>y",x>y)
print("x<=y",x<=y)
print("x<y",x<y)
print("x==y",x==y)
Table
####################operations###############
#####
print("x+y",x+y)
print("x-y",x-y)
print("x*y",x*y)
print("x/y",x/y)
###############python 2#########
print("x//y",x//y)
print("x%y",x%y)
print("x**y",x**y)
#################built in function#######
print("divmod(x,y)",divmod(x,y))
print("pow(x,y)",pow(x,y))
print("abs(-1)",abs(-1))
print("int(5.2)",int(5.2))
print('int("oxff",16)',int("0xff",16))
print("float(x)",float(x))
###########################################
##
x+=y
print(x)
x-=y
print(x)
x*=y
print(x)
x/=y
print(x)
########################multiple assignment
x,y=4,2
print(x,y)
###########BItwise operator########
print(x|y)
print(x^y)
print(x&y)
print(x<<y)
print(x>>y)
print(~x)
x=5.0
y=float.fromhex('A')
print('x=',x,'y=',y)
print('x as integer ratio',x.as_integer_ratio())
print('y as hex',y.hex())
#typical comparisons
print("x==y",x==y)
print("x!=y",x!=y)
print("x>=y",x>=y)
print("x>y",x>y)
print("x<=y",x<=y)
print("x<y",x<y)
# usual operators
print("x+y",x+y)
print("x-y",x-y)
print("x*y",x*y)
print("x/y",x/y)
print("x//y",x//y)
print("x%y",x%y)
print("x**y",x**y)
#built in functions
print("divmod(x,y)",divmod(x,y))
print("pow(x,y)",pow(x,y))
print("abs(-x)",abs(-x))
print("int(x)",int(x))
print("float(10)",float(10))
#inline notation can also be used
print("x=x+y",end='')
x+=y
print(x)
print("x=x-y",end='')
x-=y
print(x)
x*=y
print(x)
x/=y
print(x)
#multiple assignments
x,y=4.0,2.0
print('x=',x,'y=',y)
#bitwise operations cannot be used on float types
#it is subject to rounding errors
#instead of float use decimal
Math module
x,y=5.0,10
print("x=",x,"y=",y)
import math
pi=math.pi
e=math.e
print("pi=",pi,"e=",e)
#math module functions
print("math.factorial(5)",math.factorial(5))
#lograthmic and power functions
print("math.log(x)",math.log(x))
print("math.log10(x)",math.log10(x))
print("math.exp(x)",math.exp(x))
print("math.pow(x,x)",math.pow(x,x))
print("math.sqrt(25)",math.sqrt(25))
#trignometric functions
print("math.cos(x)",math.cos(x))
print("math.acos(0.284)",math.acos(0.284))
#angular conversions
print("math.degrees(x)",math.degrees(x))
print("math.radians(286.5)",math.radians(286.5))
#hyperbolic functions
print("math.acosh(x)",math.acosh(x))
print("math.asinh(x)",math.asinh(x))
x=1
print("bool(x)=",bool(x))
y=0
print("bool(y)=",bool(y))
#bool class is a subclass of int
#zero values are considered False, non zero as True
#values considered as False in python
if not None:print("None is False")
if not False:print("False is False")
if not (0 or 0.0 or 0j):print("Zero is False")
if not({} or set([])):print("Empty sequence is False")
#Boolean or returns first true, or last false value
print("True or False returns",True or False)
print("1 or 0 returns",1 or 0)
print("None or 0 returns",None or 0)
#Boolean and returns first false or last true value
print("True and False returns",True and False)
print("1 and 0 returns",1 and 0)
print("None and 0 returns",None and 0)
#Boolean Not returns False if operand is True
print("Not True returns",not True)
print("Not 1returns",not 1)
print('Not "Text" returns',not "text")
#Boolean Not returns True if operand is False
print("Not False returns",not False)
print("Not 0 returns ",not 0)
print('Not "" returns',not "")
String or str
quote1 ="Welcome to Aimpoint"
quote2 ='Welcome to Aimpoint'
print(quote1,quote2)
quote3 ='Welcome to "Aimpoint"'
quote4 ="Welcome to Aimpoint's Institute"
print(quote3,quote4)
quote5 ="Welcome to "Aimpoint""
quote6='Welcome to Aimpoint's Institute'
print(quote5,quote6)
quote7='Welcome n to n Aimpoint'
print(quote7)
quote8='Welcome t to t Aimpoint'
print(quote8)
quote9='How to print '
print(quote9)
quote10=r'Welcome nto nAimpoint'
print(quote10)
quote11=r'Welcome tto tAimpoint'
print(quote11)
quote12=r'Welcome to Aimpoint'
print(quote12)
quote13="Aimpoint"
print("Welcome",quote13)
quote14="Aimpoint"
print("Welcome"+quote14)
print("*"*5)
quote15="Double"
print("LENGTH OF QUOTE",len(quote15))
print("MAX OF QUOTE",max(quote15))
print("MIN OF QUOTE",min(quote15))
quote16="Welcome to aimpoint"
print("welcome in quote16 or not ","bhopal" not in
quote16)
print("welcome in quote16 or not ","aimpoint" in quote16)
###string methods
quote17="Welcome to Aimpoint"
print("Count no of e",quote17.count('e'))
print("index of e",quote17.index('e'))
print("index of 0 between 10 15",quote17.index("o",5,12))
print("find l",quote17.find('l'))
print("starts with wel",quote17.startswith("Wel"))
print("ends with point",quote17.endswith("point"))
print("UPPER",quote17.upper())
print("LOWER",quote17.lower())
csv='a,b,c'
print("csv.split(',') returns",csv.split(','))
print("','.join(['x','y','z','w'])",",".join(["x","y","z","w"]))
print("A5e3.isalpha() returns","A533!".isalpha())
print("223.isdigit() returns","223".isdigit())
a = "Welcome, Aimpoint"
print(a[1])
print(a[2:5])
b = " Welcome, Aimpoint"
print(b)
print(b.strip())
print(b.replace("t","t!!!"))
Have Your Own 3D Model? You Can Import It!
PowerPoint allows you to import a variety of popular 3D
model formats.
So no matter your workflows outside of PowerPoint, you
should be able to find a suitable solution to make your 3D
models portable and presentable to virtually anyone,
anywhere and on any device (with just a few quick
modifications)
To Insert a 3D Model:
1 Go to Insert > 3D Models from a File…
This will open the Insert 3D Model Window where
you can search your computer, network or cloud
drive for any saved 3D models.
2 Insert the 3D model by selecting the file and
clicking on Insert.
The 3D Model will now be placed onto your
PowerPoint slide
Two Ways to Position and Rotate Your 3D Model
Try them yourself with the parrot on the right:
1 Click on your 3D Model: Click and
hold on the 3D control to rotate or
tilt your 3D model up, down, left,
and right. 3D Control
2 Alternatively, with your model selected, on the
Ribbon, in the 3D Model Tool Format tab, you can
click on 3D Model Views gallery to apply one of
the various position views.
Pan and Zoom
To resize or crop your 3D model within a frame, you can use the pan and zoom tool.
1 Select your 3D model > 3D Models
Format > Pan & Zoom
Note: the Pan & Zoom tool acts like an
on/off (toggle) switch. Once pressed,
you’ll see a gray box around the Pan &
Zoom button to indicate the feature is
activated. Press the button again to
deactivate the Pan & Zoom feature.
2 With the Pan & Zoom button enabled, now
move, rotate, and resize your 3D model.
3 When you are finished editing, click
the Pan & Zoom button again to exit
Pan and Zoom mode.
Now Animate Your 3D Model Using the Morph Transition
Try it yourself with the parrot on the right:
1 Duplicate this slide: Right-click the
slide thumbnail and select
Duplicate Slide.
2 In the second of these two
identical slides, change the 3D
Model on the right in some way
(rotate, move, or resize), then go
to Transitions > Morph.
3 Return to the first of the two slides and
press the Slide Show button and then
select Play to see your parrot morph!
Animate Your 3D Model Using the Animations Tab
Try it yourself with the parrot on the right:
1 Select the 3D Model on the right, then go to Animations > Turntable
Hint: Effect Options gives you even more options for Turntable.
2 Explore the other new animations designed specifically for 3D models:
Arrive, Swing, Jump & Turn, and Leave.
3 Click Add Animation to combine the new 3D animations with other
classic 2D animations, such as Fade, Grow/Shrink, or one of the many
Motion Path animations to test and see what is possible.
More questions about PowerPoint?
Select the Tell Me button and type what you want to know.
SELECT THE ARROW WHEN IN SLIDE SHOW MODE
Visit the PowerPoint team blog
Go to free PowerPoint training
Machine Learning
1. Collect a Data Set# Preprocessing data
2. Build your model
3. Train your Model
4. Evaluate your Model
5. Predict

Contenu connexe

Tendances

Writing Fast Code (JP) - PyCon JP 2015
Writing Fast Code (JP) - PyCon JP 2015Writing Fast Code (JP) - PyCon JP 2015
Writing Fast Code (JP) - PyCon JP 2015Younggun Kim
 
Introduction to Python Pandas for Data Analytics
Introduction to Python Pandas for Data AnalyticsIntroduction to Python Pandas for Data Analytics
Introduction to Python Pandas for Data AnalyticsPhoenix
 
2009 10-28-peeking-into-pandoras-bochs red-team-pentesting
2009 10-28-peeking-into-pandoras-bochs red-team-pentesting2009 10-28-peeking-into-pandoras-bochs red-team-pentesting
2009 10-28-peeking-into-pandoras-bochs red-team-pentestingSteph Cliche
 
Introduction to Jupyter notebook and MS Azure Machine Learning Studio
Introduction to Jupyter notebook and MS Azure Machine Learning StudioIntroduction to Jupyter notebook and MS Azure Machine Learning Studio
Introduction to Jupyter notebook and MS Azure Machine Learning StudioMuralidharan Deenathayalan
 
2016 bioinformatics i_python_part_2_strings_wim_vancriekinge
2016 bioinformatics i_python_part_2_strings_wim_vancriekinge2016 bioinformatics i_python_part_2_strings_wim_vancriekinge
2016 bioinformatics i_python_part_2_strings_wim_vancriekingeProf. Wim Van Criekinge
 
2016 bioinformatics i_python_part_1_wim_vancriekinge
2016 bioinformatics i_python_part_1_wim_vancriekinge2016 bioinformatics i_python_part_1_wim_vancriekinge
2016 bioinformatics i_python_part_1_wim_vancriekingeProf. Wim Van Criekinge
 
Overview of python misec - 2-2012
Overview of python   misec - 2-2012Overview of python   misec - 2-2012
Overview of python misec - 2-2012Tazdrumm3r
 
Overview of Python - Bsides Detroit 2012
Overview of Python - Bsides Detroit 2012Overview of Python - Bsides Detroit 2012
Overview of Python - Bsides Detroit 2012Tazdrumm3r
 
Programming with Python - Adv.
Programming with Python - Adv.Programming with Python - Adv.
Programming with Python - Adv.Mosky Liu
 
Python for-unix-and-linux-system-administration
Python for-unix-and-linux-system-administrationPython for-unix-and-linux-system-administration
Python for-unix-and-linux-system-administrationVictor Marcelino
 
AmI 2017 - Python intermediate
AmI 2017 - Python intermediateAmI 2017 - Python intermediate
AmI 2017 - Python intermediateLuigi De Russis
 

Tendances (18)

Basics of python
Basics of pythonBasics of python
Basics of python
 
Writing Fast Code (JP) - PyCon JP 2015
Writing Fast Code (JP) - PyCon JP 2015Writing Fast Code (JP) - PyCon JP 2015
Writing Fast Code (JP) - PyCon JP 2015
 
Introduction to Python Pandas for Data Analytics
Introduction to Python Pandas for Data AnalyticsIntroduction to Python Pandas for Data Analytics
Introduction to Python Pandas for Data Analytics
 
2009 10-28-peeking-into-pandoras-bochs red-team-pentesting
2009 10-28-peeking-into-pandoras-bochs red-team-pentesting2009 10-28-peeking-into-pandoras-bochs red-team-pentesting
2009 10-28-peeking-into-pandoras-bochs red-team-pentesting
 
Intermediate python
Intermediate pythonIntermediate python
Intermediate python
 
Introduction to Jupyter notebook and MS Azure Machine Learning Studio
Introduction to Jupyter notebook and MS Azure Machine Learning StudioIntroduction to Jupyter notebook and MS Azure Machine Learning Studio
Introduction to Jupyter notebook and MS Azure Machine Learning Studio
 
C pythontalk
C pythontalkC pythontalk
C pythontalk
 
2016 bioinformatics i_python_part_2_strings_wim_vancriekinge
2016 bioinformatics i_python_part_2_strings_wim_vancriekinge2016 bioinformatics i_python_part_2_strings_wim_vancriekinge
2016 bioinformatics i_python_part_2_strings_wim_vancriekinge
 
2016 bioinformatics i_python_part_1_wim_vancriekinge
2016 bioinformatics i_python_part_1_wim_vancriekinge2016 bioinformatics i_python_part_1_wim_vancriekinge
2016 bioinformatics i_python_part_1_wim_vancriekinge
 
Python lec1
Python lec1Python lec1
Python lec1
 
Overview of python misec - 2-2012
Overview of python   misec - 2-2012Overview of python   misec - 2-2012
Overview of python misec - 2-2012
 
Overview of Python - Bsides Detroit 2012
Overview of Python - Bsides Detroit 2012Overview of Python - Bsides Detroit 2012
Overview of Python - Bsides Detroit 2012
 
Python lecture 02
Python lecture 02Python lecture 02
Python lecture 02
 
Programming with Python - Adv.
Programming with Python - Adv.Programming with Python - Adv.
Programming with Python - Adv.
 
Python for-unix-and-linux-system-administration
Python for-unix-and-linux-system-administrationPython for-unix-and-linux-system-administration
Python for-unix-and-linux-system-administration
 
Tensorflow 2.0 and Coral Edge TPU
Tensorflow 2.0 and Coral Edge TPU Tensorflow 2.0 and Coral Edge TPU
Tensorflow 2.0 and Coral Edge TPU
 
AmI 2017 - Python intermediate
AmI 2017 - Python intermediateAmI 2017 - Python intermediate
AmI 2017 - Python intermediate
 
Building custom kernels for IPython
Building custom kernels for IPythonBuilding custom kernels for IPython
Building custom kernels for IPython
 

Similaire à Python Course

python-160403194316.pdf
python-160403194316.pdfpython-160403194316.pdf
python-160403194316.pdfgmadhu8
 
Python Seminar PPT
Python Seminar PPTPython Seminar PPT
Python Seminar PPTShivam Gupta
 
python presntation 2.pptx
python presntation 2.pptxpython presntation 2.pptx
python presntation 2.pptxArpittripathi45
 
Fundamentals of python
Fundamentals of pythonFundamentals of python
Fundamentals of pythonBijuAugustian
 
Training report 1923-b.e-eee-batchno--intern-54 (1).pdf
Training report 1923-b.e-eee-batchno--intern-54 (1).pdfTraining report 1923-b.e-eee-batchno--intern-54 (1).pdf
Training report 1923-b.e-eee-batchno--intern-54 (1).pdfYadavHarshKr
 
Python_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptxPython_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptxlemonchoos
 
Hello, Python
Hello, PythonHello, Python
Hello, Pythonhardwyrd
 
Phython Programming Language
Phython Programming LanguagePhython Programming Language
Phython Programming LanguageR.h. Himel
 
Seminar report on python 3 course
Seminar report on python 3 courseSeminar report on python 3 course
Seminar report on python 3 courseHimanshuPanwar38
 
REPORT ON AUDIT COURSE PYTHON BY SANA 2.pdf
REPORT ON AUDIT COURSE PYTHON BY SANA 2.pdfREPORT ON AUDIT COURSE PYTHON BY SANA 2.pdf
REPORT ON AUDIT COURSE PYTHON BY SANA 2.pdfSana Khan
 

Similaire à Python Course (20)

python into.pptx
python into.pptxpython into.pptx
python into.pptx
 
python-160403194316.pdf
python-160403194316.pdfpython-160403194316.pdf
python-160403194316.pdf
 
Python
PythonPython
Python
 
Python Seminar PPT
Python Seminar PPTPython Seminar PPT
Python Seminar PPT
 
05 python.pdf
05 python.pdf05 python.pdf
05 python.pdf
 
Python tutorial
Python tutorialPython tutorial
Python tutorial
 
python presntation 2.pptx
python presntation 2.pptxpython presntation 2.pptx
python presntation 2.pptx
 
Pyhton-1a-Basics.pdf
Pyhton-1a-Basics.pdfPyhton-1a-Basics.pdf
Pyhton-1a-Basics.pdf
 
Python Programming.pptx
Python Programming.pptxPython Programming.pptx
Python Programming.pptx
 
Fundamentals of python
Fundamentals of pythonFundamentals of python
Fundamentals of python
 
Training report 1923-b.e-eee-batchno--intern-54 (1).pdf
Training report 1923-b.e-eee-batchno--intern-54 (1).pdfTraining report 1923-b.e-eee-batchno--intern-54 (1).pdf
Training report 1923-b.e-eee-batchno--intern-54 (1).pdf
 
Python_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptxPython_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptx
 
python-ppt.ppt
python-ppt.pptpython-ppt.ppt
python-ppt.ppt
 
python-ppt.ppt
python-ppt.pptpython-ppt.ppt
python-ppt.ppt
 
Hello, Python
Hello, PythonHello, Python
Hello, Python
 
Phython Programming Language
Phython Programming LanguagePhython Programming Language
Phython Programming Language
 
Seminar report on python 3 course
Seminar report on python 3 courseSeminar report on python 3 course
Seminar report on python 3 course
 
REPORT ON AUDIT COURSE PYTHON BY SANA 2.pdf
REPORT ON AUDIT COURSE PYTHON BY SANA 2.pdfREPORT ON AUDIT COURSE PYTHON BY SANA 2.pdf
REPORT ON AUDIT COURSE PYTHON BY SANA 2.pdf
 
Python
PythonPython
Python
 
Python basics
Python basicsPython basics
Python basics
 

Plus de Sourabh Sahu

Understanding GIT and Version Control
Understanding GIT and Version ControlUnderstanding GIT and Version Control
Understanding GIT and Version ControlSourabh Sahu
 
Python Seaborn Data Visualization
Python Seaborn Data Visualization Python Seaborn Data Visualization
Python Seaborn Data Visualization Sourabh Sahu
 
Mongo db Quick Guide
Mongo db Quick GuideMongo db Quick Guide
Mongo db Quick GuideSourabh Sahu
 
Android styles and themes
Android styles and themesAndroid styles and themes
Android styles and themesSourabh Sahu
 
SeekBar in Android
SeekBar in AndroidSeekBar in Android
SeekBar in AndroidSourabh Sahu
 
Android ListView and Custom ListView
Android ListView and Custom ListView Android ListView and Custom ListView
Android ListView and Custom ListView Sourabh Sahu
 
Android project architecture
Android project architectureAndroid project architecture
Android project architectureSourabh Sahu
 
Shared preferences
Shared preferencesShared preferences
Shared preferencesSourabh Sahu
 
Content Providers in Android
Content Providers in AndroidContent Providers in Android
Content Providers in AndroidSourabh Sahu
 
Calendar, Clocks, DatePicker and TimePicker
Calendar, Clocks, DatePicker and TimePickerCalendar, Clocks, DatePicker and TimePicker
Calendar, Clocks, DatePicker and TimePickerSourabh Sahu
 
Progress Dialog, AlertDialog, CustomDialog
Progress Dialog, AlertDialog, CustomDialogProgress Dialog, AlertDialog, CustomDialog
Progress Dialog, AlertDialog, CustomDialogSourabh Sahu
 
AutocompleteTextView And MultiAutoCompleteTextView
AutocompleteTextView And MultiAutoCompleteTextViewAutocompleteTextView And MultiAutoCompleteTextView
AutocompleteTextView And MultiAutoCompleteTextViewSourabh Sahu
 
Parceable serializable
Parceable serializableParceable serializable
Parceable serializableSourabh Sahu
 
Android Architecture
Android ArchitectureAndroid Architecture
Android ArchitectureSourabh Sahu
 
Android Installation Testing
Android Installation TestingAndroid Installation Testing
Android Installation TestingSourabh Sahu
 
Android Installation
Android Installation Android Installation
Android Installation Sourabh Sahu
 

Plus de Sourabh Sahu (20)

Understanding GIT and Version Control
Understanding GIT and Version ControlUnderstanding GIT and Version Control
Understanding GIT and Version Control
 
Python Seaborn Data Visualization
Python Seaborn Data Visualization Python Seaborn Data Visualization
Python Seaborn Data Visualization
 
Mongo db Quick Guide
Mongo db Quick GuideMongo db Quick Guide
Mongo db Quick Guide
 
Android styles and themes
Android styles and themesAndroid styles and themes
Android styles and themes
 
SeekBar in Android
SeekBar in AndroidSeekBar in Android
SeekBar in Android
 
Android layouts
Android layoutsAndroid layouts
Android layouts
 
Android ListView and Custom ListView
Android ListView and Custom ListView Android ListView and Custom ListView
Android ListView and Custom ListView
 
Activities
ActivitiesActivities
Activities
 
Android project architecture
Android project architectureAndroid project architecture
Android project architecture
 
Shared preferences
Shared preferencesShared preferences
Shared preferences
 
Content Providers in Android
Content Providers in AndroidContent Providers in Android
Content Providers in Android
 
SQLITE Android
SQLITE AndroidSQLITE Android
SQLITE Android
 
Calendar, Clocks, DatePicker and TimePicker
Calendar, Clocks, DatePicker and TimePickerCalendar, Clocks, DatePicker and TimePicker
Calendar, Clocks, DatePicker and TimePicker
 
Progress Dialog, AlertDialog, CustomDialog
Progress Dialog, AlertDialog, CustomDialogProgress Dialog, AlertDialog, CustomDialog
Progress Dialog, AlertDialog, CustomDialog
 
AutocompleteTextView And MultiAutoCompleteTextView
AutocompleteTextView And MultiAutoCompleteTextViewAutocompleteTextView And MultiAutoCompleteTextView
AutocompleteTextView And MultiAutoCompleteTextView
 
Web view
Web viewWeb view
Web view
 
Parceable serializable
Parceable serializableParceable serializable
Parceable serializable
 
Android Architecture
Android ArchitectureAndroid Architecture
Android Architecture
 
Android Installation Testing
Android Installation TestingAndroid Installation Testing
Android Installation Testing
 
Android Installation
Android Installation Android Installation
Android Installation
 

Dernier

Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 

Dernier (20)

Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 

Python Course

  • 1. Python Artificial Intelligence Machine Learning Deep Learning The Next Big Thing Sourabh Sahu
  • 2. Why Python? • most popular language for Data Scientists worldwide • Python tops the list of the most popular programming languages in 2018 • Object-Oriented • Dynamic Type Checking makes it inherently generic – C++ templates for free! • Free, as in Open Source free • Portable • Powerful language constructs / features • Powerful toolkit / library • Mixable with other languages • Easy to use & learn
  • 3. What you can do with Python?
  • 4. Python Job Profiles •Software Engineer •Python Developer •Research Analyst •Data Analyst •Data Scientist •Software Developer
  • 6.
  • 7. Popularity 41 large organizations in the world have adopted Python as their primary programming language in a very small span of time. Some of the big players like Quora • Facebook • YouTube • SlideShare • Dropbox • Pinterest • Reddit • Netflix have most of their new code written in Python.
  • 17.
  • 19. features 1. Open Source 2. Quick to Learn 3. Simple to read and understand 4. Powerful 5. Ubiquitous 6. Object Oriented +Procedural 7. Dynamically Type 8. Strongly Type 9. Wide space delimited [indentation] 10. Interpreted
  • 20. Types 1. Cypthon 2. Jython 3. Iron python 4. PyPy
  • 21. Unbiquitious 1. Web Scripting [Django] 2. 3 D modeling [Blender] 3. Desktop Applications [eg drop box] 4. Games [PyGames] 5. Scientific [PySci]
  • 22. PEP 1. Python Enhance Program 2. Community 3. Guidelines 4. PEP0—Index of PEP 5. PEP1—purpose of PEP 6. PEP8 --style 7. PEP20—design 8. Import shell
  • 23. History 1. Python was conceived in the late 1980s by Guido van Rossum 2. at Centrum Wiskunde & Informatica (CWI) in the Netherlands as a successor to the ABC language (itself inspired by SETL), capable of exception handling and interfacing with the Amoeba operating system. 3. Its implementation began in December 1989. 4. 1991 first released 5. Community 6. Van Rossum led the language community until stepping down as leader in July 2018 7. Python Software Foundation.
  • 24. Python 1. Python 2 /Python 3 2. Python 2 : legacy 3. Python 3 : new and in use 4. ---------------------------------------------------------------------------- 5. Python 3.7.2 6. Python 2.7
  • 25. Installation Important: You want to be sure to check the box that says Add Python 3.x to PATH as shown to ensure that the interpreter will be placed in your execution path. Then just click Install Now. That should be all there is to it. A few minutes later you should have a working Python 3 installation on your system.
  • 26. LINUX Linux There is a very good chance your Linux distribution has Python installed already, but it probably won’t be the latest version, and it may be Python 2 instead of Python 3. To find out what version(s) you have, open a terminal window and try the following commands: •python --version •python2 --version •python3 --version One or more of these commands should respond with a version, as below: $ python3 --version Python 3.6.5 If the version shown is Python 2.x.x or a version of Python 3 that is not the latest (3.6.5 as of this writing), then you will want to install the latest version. The procedure for doing this will depend on the Linux distribution you are running. Note that it is frequently easier to use a tool called pyenv to manage multiple Python versions on Linux. To learn more about it, see our article here. Ubuntu
  • 27. Depending on the version of the Ubuntu distribution you run, the Python install instructions vary. You can determine your local Ubuntu version by running the following command: $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.4 LTS Release: 16.04 Codename: xenial Depending on the version number you see under Release in the console output, follow the instructions below: •Ubuntu 17.10, Ubuntu 18.04 (and above) come with Python 3.6 by default. You should be able to invoke it with the command python3. •Ubuntu 16.10 and 17.04 do not come with Python 3.6 by default, but it is in the Universe repository. You should be able to install it with the following commands: $ sudo apt-get update $ sudo apt-get install python3.6 You can then invoke it with the command python3.6. •If you are using Ubuntu 14.04 or 16.04, Python 3.6 is not in the Universe repository, and you need to get it from a Personal Package Archive (PPA). For example, to install Python from the “deadsnakes” PPA, do the following: $ sudo add-apt-repository ppa:deadsnakes/ppa $ sudo apt-get update $ sudo apt-get install python3.6 As above, invoke with the command python3.6. LINUX
  • 28.
  • 29.
  • 30.
  • 31. LINUX
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41. IDLE
  • 42.
  • 43. >>> name=input('What is your name? ') What is your name? Sourabh >>> name 'Sourabh' >>> USER INPUT
  • 45. >>> name=input('What is your name? ‘) What is your name? Sourabh >>> name 'Sourabh' >>> help(input) Help on built-in function input in module builtins: input(...) input([prompt]) -> string Read a string from standard input. The trailing newline is stripped. If the user hits EOF (Unix: Ctl-D, Windows: Ctl-Z+Return), raise EOFError. On Unix, GNU readline is used if enabled. The prompt string, if given, Concatenation
  • 46. Modules print("Learning imports and modules") print(dir()) import math print(dir()) print("Value of pi ",math.pi) print("value of tan 1 ",math.tan(1)) del(math) import math as mymaths print(dir()) print("Value of pi ",mymaths.pi) print("value of tan 1 ",mymaths.tan(1)) del(mymaths) from math import pi,tan print(dir()) print("Value of pi ",pi) print("value of tan 1 ",tan(1)) del(pi) del(tan) from math import pi as pie,tan as tangent print(dir()) print("Value of pi ",pie) print("value of tan 1 ",tangent(1)) del(pie) del(tangent)
  • 47. Importing module from math import pi radius=input("What is the radius of circle? ") print("Area of the circle",float(radius)**2*pi) print("Circumference",2*pi*float(radius))
  • 49. x=5 y=10 z=0xA #hexadecimal t=0o12 #octal w=0b1011 #binary print("x",x,"y",y,"hex",z,"octal",t,"binary",w) ########################################### #################### ########COMPARISONS######################## ### print("x==y",x==y) print("x!=y",x!=y) print("x>=y",x>=y) print("x>y",x>y) print("x<=y",x<=y) print("x<y",x<y) print("x==y",x==y)
  • 50. Table
  • 51. ####################operations############### ##### print("x+y",x+y) print("x-y",x-y) print("x*y",x*y) print("x/y",x/y) ###############python 2######### print("x//y",x//y) print("x%y",x%y) print("x**y",x**y) #################built in function####### print("divmod(x,y)",divmod(x,y)) print("pow(x,y)",pow(x,y)) print("abs(-1)",abs(-1)) print("int(5.2)",int(5.2)) print('int("oxff",16)',int("0xff",16)) print("float(x)",float(x))
  • 53. x=5.0 y=float.fromhex('A') print('x=',x,'y=',y) print('x as integer ratio',x.as_integer_ratio()) print('y as hex',y.hex()) #typical comparisons print("x==y",x==y) print("x!=y",x!=y) print("x>=y",x>=y) print("x>y",x>y) print("x<=y",x<=y) print("x<y",x<y)
  • 55. #built in functions print("divmod(x,y)",divmod(x,y)) print("pow(x,y)",pow(x,y)) print("abs(-x)",abs(-x)) print("int(x)",int(x)) print("float(10)",float(10)) #inline notation can also be used print("x=x+y",end='') x+=y print(x) print("x=x-y",end='') x-=y print(x) x*=y print(x) x/=y print(x)
  • 56. #multiple assignments x,y=4.0,2.0 print('x=',x,'y=',y) #bitwise operations cannot be used on float types #it is subject to rounding errors #instead of float use decimal
  • 58. #lograthmic and power functions print("math.log(x)",math.log(x)) print("math.log10(x)",math.log10(x)) print("math.exp(x)",math.exp(x)) print("math.pow(x,x)",math.pow(x,x)) print("math.sqrt(25)",math.sqrt(25))
  • 60. x=1 print("bool(x)=",bool(x)) y=0 print("bool(y)=",bool(y)) #bool class is a subclass of int #zero values are considered False, non zero as True
  • 61. #values considered as False in python if not None:print("None is False") if not False:print("False is False") if not (0 or 0.0 or 0j):print("Zero is False") if not({} or set([])):print("Empty sequence is False") #Boolean or returns first true, or last false value print("True or False returns",True or False) print("1 or 0 returns",1 or 0) print("None or 0 returns",None or 0)
  • 62. #Boolean and returns first false or last true value print("True and False returns",True and False) print("1 and 0 returns",1 and 0) print("None and 0 returns",None and 0) #Boolean Not returns False if operand is True print("Not True returns",not True) print("Not 1returns",not 1) print('Not "Text" returns',not "text") #Boolean Not returns True if operand is False print("Not False returns",not False) print("Not 0 returns ",not 0) print('Not "" returns',not "")
  • 63. String or str quote1 ="Welcome to Aimpoint" quote2 ='Welcome to Aimpoint' print(quote1,quote2) quote3 ='Welcome to "Aimpoint"' quote4 ="Welcome to Aimpoint's Institute" print(quote3,quote4) quote5 ="Welcome to "Aimpoint"" quote6='Welcome to Aimpoint's Institute' print(quote5,quote6) quote7='Welcome n to n Aimpoint' print(quote7)
  • 64. quote8='Welcome t to t Aimpoint' print(quote8) quote9='How to print ' print(quote9) quote10=r'Welcome nto nAimpoint' print(quote10) quote11=r'Welcome tto tAimpoint' print(quote11) quote12=r'Welcome to Aimpoint' print(quote12) quote13="Aimpoint" print("Welcome",quote13) quote14="Aimpoint" print("Welcome"+quote14) print("*"*5) quote15="Double" print("LENGTH OF QUOTE",len(quote15)) print("MAX OF QUOTE",max(quote15)) print("MIN OF QUOTE",min(quote15))
  • 65. quote16="Welcome to aimpoint" print("welcome in quote16 or not ","bhopal" not in quote16) print("welcome in quote16 or not ","aimpoint" in quote16) ###string methods quote17="Welcome to Aimpoint" print("Count no of e",quote17.count('e')) print("index of e",quote17.index('e')) print("index of 0 between 10 15",quote17.index("o",5,12)) print("find l",quote17.find('l')) print("starts with wel",quote17.startswith("Wel")) print("ends with point",quote17.endswith("point")) print("UPPER",quote17.upper()) print("LOWER",quote17.lower()) csv='a,b,c' print("csv.split(',') returns",csv.split(',')) print("','.join(['x','y','z','w'])",",".join(["x","y","z","w"])) print("A5e3.isalpha() returns","A533!".isalpha()) print("223.isdigit() returns","223".isdigit())
  • 66. a = "Welcome, Aimpoint" print(a[1]) print(a[2:5]) b = " Welcome, Aimpoint" print(b) print(b.strip()) print(b.replace("t","t!!!"))
  • 67.
  • 68. Have Your Own 3D Model? You Can Import It! PowerPoint allows you to import a variety of popular 3D model formats. So no matter your workflows outside of PowerPoint, you should be able to find a suitable solution to make your 3D models portable and presentable to virtually anyone, anywhere and on any device (with just a few quick modifications) To Insert a 3D Model: 1 Go to Insert > 3D Models from a File… This will open the Insert 3D Model Window where you can search your computer, network or cloud drive for any saved 3D models. 2 Insert the 3D model by selecting the file and clicking on Insert. The 3D Model will now be placed onto your PowerPoint slide
  • 69. Two Ways to Position and Rotate Your 3D Model Try them yourself with the parrot on the right: 1 Click on your 3D Model: Click and hold on the 3D control to rotate or tilt your 3D model up, down, left, and right. 3D Control 2 Alternatively, with your model selected, on the Ribbon, in the 3D Model Tool Format tab, you can click on 3D Model Views gallery to apply one of the various position views.
  • 70. Pan and Zoom To resize or crop your 3D model within a frame, you can use the pan and zoom tool. 1 Select your 3D model > 3D Models Format > Pan & Zoom Note: the Pan & Zoom tool acts like an on/off (toggle) switch. Once pressed, you’ll see a gray box around the Pan & Zoom button to indicate the feature is activated. Press the button again to deactivate the Pan & Zoom feature. 2 With the Pan & Zoom button enabled, now move, rotate, and resize your 3D model. 3 When you are finished editing, click the Pan & Zoom button again to exit Pan and Zoom mode.
  • 71. Now Animate Your 3D Model Using the Morph Transition Try it yourself with the parrot on the right: 1 Duplicate this slide: Right-click the slide thumbnail and select Duplicate Slide. 2 In the second of these two identical slides, change the 3D Model on the right in some way (rotate, move, or resize), then go to Transitions > Morph. 3 Return to the first of the two slides and press the Slide Show button and then select Play to see your parrot morph!
  • 72. Animate Your 3D Model Using the Animations Tab Try it yourself with the parrot on the right: 1 Select the 3D Model on the right, then go to Animations > Turntable Hint: Effect Options gives you even more options for Turntable. 2 Explore the other new animations designed specifically for 3D models: Arrive, Swing, Jump & Turn, and Leave. 3 Click Add Animation to combine the new 3D animations with other classic 2D animations, such as Fade, Grow/Shrink, or one of the many Motion Path animations to test and see what is possible.
  • 73. More questions about PowerPoint? Select the Tell Me button and type what you want to know. SELECT THE ARROW WHEN IN SLIDE SHOW MODE Visit the PowerPoint team blog Go to free PowerPoint training
  • 74. Machine Learning 1. Collect a Data Set# Preprocessing data 2. Build your model 3. Train your Model 4. Evaluate your Model 5. Predict