p2 Flashcards
In ______ Modes, The Python syntax defines a set of rules that are used to _______ while _____ Program.
- Programming
- create Python statements
- writing a Python
In _____ Modes, The Python Programming Language Syntax has many similarities to ___, ___, and ___ Programming Languages.
- Programming
- Perl, C, and Java
In _____ Mode, If you have installed Python on your computer (___, ____, ____), you can invoke a Python interpreter using the _____.
- Interactive
- Windows, Linux, macOS
- command line
In _____ mode, Just type the command ____, and the ____ will show as follows.
- Interactive
- python
- interpreter
In ______ Mode, If you try to type in a Python syntax, pressing ____ will automatically run it like a command.
- Interactive
- Enter
In ____ Mode, You may write your script on any notepad but remember to save the file with a _____” extension
- Script
- “.py”
In ____ Mode, In ____, you can do this by____ - clicking the empty space in the folder while ____ the Right- Shift key.
- Script
- Windows
- right
- holding
When the terminal/command prompt opens, type in python _____
filename.py.
An identifier is a name used to identify a _____, _____, _______, _____, or other object.
- Variable, Function, Class, Module
An identifier starts with a letter ______ or an _____ followed by zero or more letters, underscores and digits (0 to 9).
- A to Z / a to z
- underscore (_)
Python does not allow punctuation characters such as ____, ____, ____ within identifiers.
- @
- $
- %
Class names start with an _____ letter. All other identifiers start with a _____ letter.
- uppercase
- lowercase
Python accepts ____, ____, ____ quotes to denote string literals, as long as the same type of quote starts and ends the string.
single (‘), double (“) and triple (‘’’ or “””)
Python comments are very much similar to the comments available in ___, ___, ____ Programming languages.
PHP, BASH and Perl
The _____ allows multiple statements on the single line.
semicolon ( ; )