Step 1 - Getting Started in Python 3 Flashcards
(40 cards)
What do you mean by Six Degree of Separation ?
Six degrees of separation is the theory that any person on the planet can be connected to any other person on the planet through a chain of acquaintances that has no more than five intermediaries.
What is Zen of Python ?
The Zen of Python by Tim Peters are 20 guidelines for the design of the Python language. Your Python code doesn’t necessarily have to follow these guidelines, but they’re good to keep in mind. The Zen of Python is an Easter egg, or hidden joke, that appears if you run import this:
> > > import this
When was Python Born ?
Python was officially born in Feb 20 1991,with version no. 0.9 .
What are some Development Environments of Python?
Python IDEs are,
Jupyter Notebook,Jupyter Lab
PC or Pycharm
VS Code Editor
Which Python Modules are for Data Manipulation ?
Numpy & Pandas
Which Python Modules are for Scientific Computing ?
SciPy Module
In which module ML algorithms are efficiently implemented.
SciKit Learn or sklearn
Which Python Modules are for Big Data ?
Hadoopy & PySpark
Which Python Modules are to Speed up
or Boosting Python Code as par C Code ?
Cython & Numba helps python code run faster.
What is a popular test automation framework in Python ?
NOSE
When was Pythion 3.0 released?
In Dec 2008
When was Python 2.x End of Life
It originally had a scheduled EOL for 2015 but was extended for another five years to 2020
What is BSD License ?
The abbreviation of BSD is Berkely Source Distribution, It is a low restriction-based license for opensource S/W.Which gives you permission to use it commercially and for redistribution
What are Python Identifiers ?
Identifiers are the names of objects, such as varaibles names,class names,function names
What are the rules of creating identifiers in Python ?
- It can be a combination of lower case or uppercase Letters,digits 0-9 & underscore.
- It cant be starts with digit.
- Special Symbol not allowed except underscore
- Keywords not allowed as identifiers.
What are python Keywords ?
These are set of reserved words,which are used to define syntax & structure of the language.
Keywords are case sensitive must be used in lower case
What is indentation in python ?
Indentation is very important in python,it means you have to maintain proper space from left when writing a code.
What are suites in python ?
Collection of individual Statements that makes a single code block.Header line begin with a keyword & terminate with a colon: and that are followed by a one or more lines that makes up a suite.
What are basic Object types in python?
All data in the python program is represented by objects or by relations between objects,objects are data types in python ,
Objects has three things - identity.type & value
List some Basic Object types in python ?
These are Total Twelve
- None
- Boolean
- Integer
- Float
- Long
- Complex
- String
- List
- Tuple
- Set
- Dictionary
- File
How to write comments in Python ?
Single Line Comments Starts with #
Multiline comments are within Tripple Quotes “”” “”””
How to write multiline statements in python
Multiline statements can be written in two ways -
Implicit Continuation - Put the code in brackets and brake the line after binary operator .
x = (1 + 1+ 2 +
3 + 5)
weekdays = [‘Monday’,’Tuesday’,
‘Wednesday’,’Thursday’]
print(weekdays)
Explicit Continuation - Use backslash.
x = 1 + 1+ 2 +\
3 + 5
How to write multiple statements in a single line in Python?
Use semicolon at the end statement .
What is the difference between Expression and Statement in python?
Expression: Something which evaluates to a value. Example: 1+2/x
an expression is any section of the code that evaluates to a value
Statement: A line of code which does something. Example: GOTO 100.A statement is a complete line of code that performs some action