D335 Questions with Answers (100% Correct Answers)
a computer program that executes code written in the Python programming language
—ANS: Python interpreter
a program that allows the user to execute one line of code at a time —ANS: interactive
interpreter
common word for the textual representation of a program (and hence programming is
also called coding —ANS: Code
a row of text —ANS: line
The interactive interpreter displays a prompt (">>>") that indicates the interpreter is
ready to accept code —ANS: prompt
a program instruciton. A program mostly consists of a series of statements, and each
statement usually appears on its own line. —ANS: statement
code that return a value when evaluated; for example, the code wage hours weeks is an
expression that computes a number —ANS: Expressions
© 2025 All rights reserved
, 2
named references to values stored by an interpreter —ANS: variables
creates new variable EX: salary = wage hours weeks —ANS: assignment
a function that displays variables and expression values to output. Each print
command includes a new line. —ANS: print()
used for comments and do not show up in outputs. for human readers. —ANS: "#"
character
texted enclosed in quotes (letters, numbers, spaces, or symbols like @ or #(=) —ANS:
string literal
How do you keep the output of a subsequent print statement on the same line
separated by a single space —ANS: use end=' '
any space , tab, or newline —ANS: whitespace
how does python read input. what's the. command? —ANS: input()
will read text entered by the user and the variable is assigned with the entered text
© 2025 All rights reserved