Introduction Flashcards
(36 cards)
What is IEEE Spectrum ?
IEEE Spectrum is the flagship magazine and website of the IEEE - Institute of Electrical and Electronics Engineers
What is a Code ?
The term code refers to anything written in a programming language to provide instructions to a computer
What is Coding?
The term coding is often used to describe the act of writing code.
What is an Code Editor ?
A code editor is an app that lets you type code.
What are the various code editors ?
Anaconda,VS Code Editor ,Pycharm,Jupiter Notebook,
Aptana Studio.
How to start python in VS Code ?
Goto view-Terminal .
How to add two numbers in python Terminal ?
>>> 1+1
2
>>>
How to exit from python terminal in vs code editor?
ctrl + d in Linux ,or exit() or quit() functions.
How to know python version using Linux terminal ?
python –version
or python -V
Which languages supported by jupitor notebook ?
Julia,Python and R,
Julia & R popular for data science
How to get help in python terminal ?
Goto python terminal …
>>> help()
help>
How do get help in the python terminal?
Goto python help terminal…
>>>help()
help>keywords
help>symbols
help>modules
How to exit from help terminal in python ?
ctrl + c and q
How to zoom in out in vs code ?
ctrl + for zoom in
ctrl - for zoom out
How to show aphorisms of python?
Type import this on python interpreter.
Who wrote Zen of Python & how to get them?
The Zen of Python wrote by
Tim Peters.
Type import this on python interpreter.
What are PEP20 in python ?
The Zen of Python is sometimes referred to as PEP 20.The acronym is Python enhancement proposals.
20 refers to the 20 Zen of Python
principles, only 19 of which have been written down.
Where to find peps online ?
Navigate to www.python.org/dev/peps
What is Style Guide for Python Code.
Style Guide for Python Code is an PEP-8,It is all about Python
Coding Style Guidelines from the Python.org website.
https://www.python.org/dev/peps/pep-0008/
What is PyLint ?
PyLint is a tool in Anaconda that makes suggestions about your code
as you’re typing.
How to know installed python modules in anaconda ?
Goto enviroments, see right side pane for installed modules.
They are installed with anaconda.
How to know installed modules using Terminal ?
goto python help and search for modules.
# python
>>>help()
help>modules
What are docstrings in python ?
Multiple line comments enclosed within triple quotation marks are docstrings.
“””
This is an dockstring
“””
How to use python comments ?
Two Methods,
- for single line comments use # symbol.
- for multiline comments use docstrings.