CC3 Quiz 1 Flashcards
When did Python started
Late 1980’s
When is Python implemented at CWI Netherlands
December 1989
Python’s principal author
Guido van Rossum
van Rossum is known as…
‘Benevolent Dictator for Life’ (BDFL)
It is known for its simplicity & developer friendliness
Python
Python is on top 10 most popular programming language since…
2003
Python is 4th in pl in….
April 2018
Python is 1st(IEEE Spectrum) in the year…
2017
Python is 3rd (Redmonk Programming Language) in the year…
2018
THRUST AREAS OF PYTHON
- Academia
- Scientific tool
- Machine learning
- Natural Language Processing
- Data Analysis
- Statistics
- Hypertext Transfer Protocol (HTTP) Library
- Database connectors
- Object Relational Mapping (ORM)
- Web Framework
- Cloud Computing
- Game Development
In academia area, Python is competing with…
What is python’s advantage?
Matlab
Python is pl, Matlab is not
Tool for simulating and analyzing complex system
Scientific tool
What are the 5 core scientific packages of Python
- Scipy Library
- Numpy
- Jupyter
- Sympy
- Matplotlib
Core scientific packages are available in…
Berkeley Software Distribution (BSD) license
It is use for numerical integration
Scipy
It is used for N-dimensional arrays
Numpy
It revolutionized the way programming is done
Jupyter
Tool to learn from experience and database
Machine learning
Well known machine learning
ScikitLearn
A popular Library for natural Language Processing
It reads and understand text
Available in Apache license V2.0
Natural Language toolkit
Python’s using panda for…
Data analysis
Two data structure of panda
Series
Dataframe
tabular data structure rows and columns
dataframe
python library for statistical analysis used for economics and finance
statsmodel
the library is written for human
request HTTP library
drivers that allow us to query the database
database connectors
opensource database
mySQL & postgreSQL
most popular for python connectors
MySQL-Python-Connector
technique used in creating ‘bridge’
Object-Relational Mapping
two web framework
django and flask
differentiate django and flask
DJANGO - full-fledge framework
FLASK - microframework
used to create a scramble private and public
OpenStack
used for game development
python
spaces at the beginning of a code line
indentation
inclusion of a short description along with the code
comment
containers for storing data values
variables
combine two or more string
concatenation
text data type
string
numerical types
int & float
data types
str, int, float, boolean, bytes
converting one data type into another
casting
containers for string and numbers
string placeholder
string formatting functions
upper()
lower()
capitalize()
title()
split()
replace()
len()
count()
turn letters in all uppercase
upper()
turn letters in all lowercase
lower()
turn the first letter of the first word in upper case, sentence form
capitalize()
convert all first letters of words in uppercase
title()
split the string at the specified separator and returns a list
split()
changing a part of a string into something else
replace()
find out how long is the string
len()
determine what position is a letter in a string (starts with 1)
count()
no. formatting functions
round()
ceil()
floor()
pow()
rounds off a number
(7.453 –» 7)
(7.542 –» 8)
round()
find the highest possible number for a specific number
(7.01 –» 8)
ceil()
find the lowest possible number for a specific number
(7.99 –»8)
floor()
find the returns the value of x to the power of y (x^y).
pow()
has a decision part
(true or false)
selection
have two or more condition in one line
compound condition
built-in methods
islower()
isupper()
isdigit()
isalpha()
determines whether a string is on uppercase
isupper()
determines whether a string is on lowercase
islower()
determines whether a string is a digit
isdigit()
determines whether a string is an alphabet
isalpha()