WGU D335 OA: Introduction to Programming in Python | Objective
D335 Introduction to programming in python
Assessment | Actual Questions with Verified Answers | New 2025/202
Study online at https://quizlet.com/_gswpym
Update | 100% Correct.
1. python inter- a computer program that executes code written in the Python programming
preter language
2. prompt >>> inticates the interpreter is ready to accept code
3. statement program instruction
a program mostly consists of a series of statements, and each statement usually
appears on its own line
4. comment charac- #
ter
5. outputting mul- use a comma to seperate
tiple items with ex) print('wage: ', wage)
one statement
6. newline charac- \n
ters ex) ('1\n2\n3') prints
1
2
3
print() can also be used to create a newline
7. what is the pur- by default in python each print statement starts a new line, end=' ' indicates that
pose of end=' ' it should instead put the next print on the same line following a space
8. input function input()
gets input from the user
9. converting user using int()
input to integer ex)
, D335 Introduction to programming in python
Study online at https://quizlet.com/_gswpym
my_string = '123'
my_int = int('123')
10. input prompt Adding a string inside the parentheses of input() displays a prompt to the user
before waiting for input
ex)
hourly_wage = int(input('Enter hourly wage: '))
will display Enter hourly wage: and wait for input
default input will be string and only requires input()
11. syntax errors to violate a programming language's rules on how symbols can be combined to
create a program. An example is putting multiple prints on the same line.
12. runtime errors a program's syntax is correct but the program attempts an impossible operation,
such as dividing by zero or multiplying strings together (like 'Hello' * 'ABC').
13. IDEs integrated development environment
embeds a python interpreter so that the reader may experiment with python
programming
IDLE is the official python IDE
14. how to type a \\
backslash (\)
one backslash thinks you are going to start a newline
15. python 3 re-
served words
16. value a value such as 20, abcdef, or 55
17. type the type of object such as a string or integer
, D335 Introduction to programming in python
Study online at https://quizlet.com/_gswpym
18. identity identifier that describes the object
19. mutability indicates if the objects value is allowed to change
integers and strings are immutable; modifying their values with assignment
statements results in new objects being created and the names bound to the new
object
must change entire string to change character
ex) alphaber[1] = 'C' is not allowed
20. print an objects print(type(x))
type
21. print an objects print(id(x))
identity
prints a large number that is the unique location in memory where the object is
stored
22. floating point lit- a fraction of a float
eral ex) 1.1 or 1.0 or 1.212
23. overflow error Error from attempting to represent a number that is too large.
24. control how :.2f
many decimals print(f'{1.5 * 1.56:.2f}') 2 decimal points
a float outputs
with
25. exponent opera- **
tor ex) 1**5 is one to the power of 5
26.
D335 Introduction to programming in python
Assessment | Actual Questions with Verified Answers | New 2025/202
Study online at https://quizlet.com/_gswpym
Update | 100% Correct.
1. python inter- a computer program that executes code written in the Python programming
preter language
2. prompt >>> inticates the interpreter is ready to accept code
3. statement program instruction
a program mostly consists of a series of statements, and each statement usually
appears on its own line
4. comment charac- #
ter
5. outputting mul- use a comma to seperate
tiple items with ex) print('wage: ', wage)
one statement
6. newline charac- \n
ters ex) ('1\n2\n3') prints
1
2
3
print() can also be used to create a newline
7. what is the pur- by default in python each print statement starts a new line, end=' ' indicates that
pose of end=' ' it should instead put the next print on the same line following a space
8. input function input()
gets input from the user
9. converting user using int()
input to integer ex)
, D335 Introduction to programming in python
Study online at https://quizlet.com/_gswpym
my_string = '123'
my_int = int('123')
10. input prompt Adding a string inside the parentheses of input() displays a prompt to the user
before waiting for input
ex)
hourly_wage = int(input('Enter hourly wage: '))
will display Enter hourly wage: and wait for input
default input will be string and only requires input()
11. syntax errors to violate a programming language's rules on how symbols can be combined to
create a program. An example is putting multiple prints on the same line.
12. runtime errors a program's syntax is correct but the program attempts an impossible operation,
such as dividing by zero or multiplying strings together (like 'Hello' * 'ABC').
13. IDEs integrated development environment
embeds a python interpreter so that the reader may experiment with python
programming
IDLE is the official python IDE
14. how to type a \\
backslash (\)
one backslash thinks you are going to start a newline
15. python 3 re-
served words
16. value a value such as 20, abcdef, or 55
17. type the type of object such as a string or integer
, D335 Introduction to programming in python
Study online at https://quizlet.com/_gswpym
18. identity identifier that describes the object
19. mutability indicates if the objects value is allowed to change
integers and strings are immutable; modifying their values with assignment
statements results in new objects being created and the names bound to the new
object
must change entire string to change character
ex) alphaber[1] = 'C' is not allowed
20. print an objects print(type(x))
type
21. print an objects print(id(x))
identity
prints a large number that is the unique location in memory where the object is
stored
22. floating point lit- a fraction of a float
eral ex) 1.1 or 1.0 or 1.212
23. overflow error Error from attempting to represent a number that is too large.
24. control how :.2f
many decimals print(f'{1.5 * 1.56:.2f}') 2 decimal points
a float outputs
with
25. exponent opera- **
tor ex) 1**5 is one to the power of 5
26.