ser jared Flashcards
Who created python and when
Guido van Rossum during 1985- 1990.
a very popular general-purpose interpreted, interactive,
object-oriented, and high-level programming language.
Python
when was python first introduced
1991
One of the key factors contributing to Python’s popularity is its concise set of keywords. Python’s appeal lies in its straightforward syntax, the use of indentation to maintain code structure instead of cluttering it with curly brackets, and its dynamic typing, which eliminates the need for prior variable declarations.
Python is Easy to learn
Python comes with a cool interactive tool called a “shell.” It’s like
having a chat with Python itself! When you open the Python shell, it
shows a friendly»_space;> prompt. You can type in any math or code stuff
you want, and Python will talk back to you right away.
Python is Interactive
Python is a versatile language that can wear many hats when it comes to programming styles. It’s fundamentally object-oriented, which means everything in Python is treated as an object. But here’s the cool part: Python can also act like other types of languages.
Python is MultiParadigm
Even though it has a very few keywords (only Thirty Five), Python
software is distributed with a standard library made of large number of modules and packages.
Python’s Standard Library
Python’s standard distribution has an excellent graphics library called TKinter. It is a Python port for the vastly popular GUI toolkit called TCL/Tk.
Python for GUI Applications
Almost any type of database can be used as a backend with the Python application. DB-API is a set of specifications for database driver software to let Python communicate with a relational database.
Python’s Database Connectivity
Python has become an essential skill for data scientists. Today, real time web applications, mobile applications and
other devices generate huge amount of data.
Python for Data Science
Python libraries like Scikit-learn and TensorFlow are incredibly useful
for creating models that predict things, like figuring out if customers
are happy or guessing what stock prices might do in the future.
Python for Machine Learning
Python’s web frameworks, like Django, Pyramid, Flask, and others, are highly favored by web developers because they speed up the process of creating web applications.
Python for Web Development
OpenCV is a widely popular library for capturing and processing images. Image processing algorithms extract information from images, reconstruct image and video data.
Python for Computer Vision and Image
processing
Python found one of its first applications in automating CRON
(Command Run ON) jobs. Certain tasks like periodic data backups, can be written in Python scripts scheduled to be invoked automatically by operating system scheduler.
Python for Job Scheduling and Automation
Python programming provides no braces to indicate blocks of code for class and function definitions or flow control. Blocks of code are
denoted by line indentation, which is rigidly enforced. All statements
within the block must be indented
Python Lines and Indentation
Python accepts single (‘), double (“) and triple (‘’’ or “””) quotes to
denote string literals, as long as the same type of quote starts and ends
the string.
Quotations in Python
Data items belonging to different data types are stored in computer’s
memory. Computer’s memory locations are having a number or
address, internally represented in binary form.
Python Variables
Python Naming Patterns
Camel Case, Pascal Case, and Snake Case
represents a kind of value and determines what operations
can be done on it
Data Types
Any data item having a numeric value is a number. There are Four
standard number data types in Python.
Number Type
A string is a sequence of one or more Unicode characters, enclosed in
single, double or triple quotation marks (also called inverted commas).
Strings in Python
In Python, List is an ordered collection of any type of data items. Data tems are separated by comma (,) symbol and enclosed in square
brackets ([]).
List in Python
an ordered collection of any type of data items.
Data items are separated by comma (,) symbol and enclosed in parentheses or round brackets ().
Tuples in Python
List is mutable object, whereas tuple is immutable. An object is
immutable means once it is stored in the memory, it cannot be
changed.
The difference between list and tuple
collection of key:value pairs. The
pairs are separated by comma and put inside curly brackets {}. To
establish mapping between key and value, the semicolon’:’ symbol is
put between the two.
Dictionary Type
a collection, but is not an indexed or ordered collection as
string, list or tuple. An object cannot appear more than once in a set,
whereas in List and Tuple, same object can appear more than once.
Set Type
refers to converting an object of one
type into another.
Casting in Python