D522 WGU STUDY GUIDE
Python - Answers- interpreted programming language known for its simplicity,
readability, and versatility
supports multiple programming paradigms, including procedural, object-oriented, and
functional programming, making it adaptable to different coding styles.
Python is - Answers- readable
dynamically typed
extensive standard library
cross plat
versatile
interpreted nature
Programming Paradigm - Answers- a fundamental style or approach to programming
that dictates how tasks should be structured and executed in each programming
language. It encompasses principles, concepts, and patterns that guide the design and
organization of code.
imperative/procedural programming - Answers- focuses on describing a sequence of
steps to perform a task, procedures or routines.
object-oriented programming (OOP) - Answers- organizes code around objects, which
encapsulate data and behavior
functional programming - Answers- emphasizes the use of functions and immutable
data for computation
declarative programming - Answers- describes what the program should accomplish
without specifying how to achieve it
event-driven programming - Answers- reacts to events and user actions, triggering
corresponding functions
logic programming - Answers- defines a set of logical conditions and lets the system
deduce solutions
indentation - Answers- defines blocks of code. crucial for structure and nesting of code
blocks
(4 spaces)
comments - Answers- #
ignored by interpreter, for humans
, Variable - Answers- used to store data, created by assigning a value to a name
Data Types - Answers- integers, floats, strings, lists, tuples, dictionaries
conditional statements - Answers- if, else, elif (else if)
Classes - Answers- (also objects) fundamental to object oriented programming in
python.
print () - Answers- used to output data to the console
print ("hello")
functions - Answers- defined using def
def greet(name):
print ("Hello, name")
run python script in cmd prompt - Answers- python script.py
How to run phython script in Python3 - Answers- python3 script.py
Integrated Development Environments (IDEs) - Answers- provide a more user-friendly
environment for coding, debugging, and running Python scripts
Markdown file - Answers- simple format used frequently to add styled text, images,
code snippets and more to coding repos serving as documentation
human readable
.md - Answers- markdown file
Consistent Indentation - Answers- All statements within the same block must be
indented by the same number of spaces.
input() - Answers- function, storing user entered info as strings
output() - Answers- functions, allowing the presentation of results or messages
format() - Answers- method, enhances output formatting by embedding variables in
strings
file I/O - Answers- through the open() functions enabling reading from and writing to
external files.
Python - Answers- interpreted programming language known for its simplicity,
readability, and versatility
supports multiple programming paradigms, including procedural, object-oriented, and
functional programming, making it adaptable to different coding styles.
Python is - Answers- readable
dynamically typed
extensive standard library
cross plat
versatile
interpreted nature
Programming Paradigm - Answers- a fundamental style or approach to programming
that dictates how tasks should be structured and executed in each programming
language. It encompasses principles, concepts, and patterns that guide the design and
organization of code.
imperative/procedural programming - Answers- focuses on describing a sequence of
steps to perform a task, procedures or routines.
object-oriented programming (OOP) - Answers- organizes code around objects, which
encapsulate data and behavior
functional programming - Answers- emphasizes the use of functions and immutable
data for computation
declarative programming - Answers- describes what the program should accomplish
without specifying how to achieve it
event-driven programming - Answers- reacts to events and user actions, triggering
corresponding functions
logic programming - Answers- defines a set of logical conditions and lets the system
deduce solutions
indentation - Answers- defines blocks of code. crucial for structure and nesting of code
blocks
(4 spaces)
comments - Answers- #
ignored by interpreter, for humans
, Variable - Answers- used to store data, created by assigning a value to a name
Data Types - Answers- integers, floats, strings, lists, tuples, dictionaries
conditional statements - Answers- if, else, elif (else if)
Classes - Answers- (also objects) fundamental to object oriented programming in
python.
print () - Answers- used to output data to the console
print ("hello")
functions - Answers- defined using def
def greet(name):
print ("Hello, name")
run python script in cmd prompt - Answers- python script.py
How to run phython script in Python3 - Answers- python3 script.py
Integrated Development Environments (IDEs) - Answers- provide a more user-friendly
environment for coding, debugging, and running Python scripts
Markdown file - Answers- simple format used frequently to add styled text, images,
code snippets and more to coding repos serving as documentation
human readable
.md - Answers- markdown file
Consistent Indentation - Answers- All statements within the same block must be
indented by the same number of spaces.
input() - Answers- function, storing user entered info as strings
output() - Answers- functions, allowing the presentation of results or messages
format() - Answers- method, enhances output formatting by embedding variables in
strings
file I/O - Answers- through the open() functions enabling reading from and writing to
external files.