• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 9 pages
Exam (elaborations)

D335 Intro to Python Study-Questions and Answers Verified 100% Correct

Document preview thumbnail
Preview 2 out of 9 pages

D335 Intro to Python Study-Questions and Answers Verified 100% Correct

Content preview

D335 Intro to Python Study-Questions and Answers
Verified 100% Correct
Computer Program

Set of instructions executing one at a time.

Input

Data that is entered into the computer system via an input or storage device.

Process

A series of actions or steps taken to achieve an end

Output

Data that has been processed into a useful format.

Variables

A named item in a program, such as x or num_people, used to hold a value

Interactive Interpreter

a program that allows the user to execute one line of code at a time

Code

Common word for the textual representation of a program

Prompt ('>>>')

A signal that the interpreter is ready to accept code

Statement

A program instruction

Expressions

, A combination of items, like variables, literals, and parentheses, that evaluates to a value, like
2*(x=1).
Codes that return a value when evaluated

Assignment

Creates a new variable using the '=' symbol

"="

assignment operator (NOT EQUALITY)
= is an assignment of a left-side variable with a right-side value

print()

Displays variables or expression values
Always adds a newline character after the output

"#"

Comments

Comments

Uses "#"
Can be used to explain portions of the code to human readers and will be ignored by the
program

String Literal

('Hello World')
Text enclosed in quotes that will be read as actual text by the program. May have letters,
numbers, spaces, or symbols

end=' '

keeps the next print's output on the same line separated by a single space

Comma ( , )

Document information

Uploaded on
March 3, 2025
Number of pages
9
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$12.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
KenAli
2.6
(18)
Sold
121
Followers
5
Items
26045
Last sold
3 days ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions