100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
WGU D335: Introduction to Python (Sections 1-4) BEGINNER FRIENDLY AND PERFECT FOR EXAM PREPARTION $10.99   Add to cart

Exam (elaborations)

WGU D335: Introduction to Python (Sections 1-4) BEGINNER FRIENDLY AND PERFECT FOR EXAM PREPARTION

 6 views  0 purchase
  • Course
  • WGU D335
  • Institution
  • WGU D335

Input A program gets data, perhaps from a file, keyboard, touchscreen, network, etc. Process A program performs computations on that data, such as adding two values like x + y Output A program puts that data somewhere, such as to a file, screen, or network. computational thinking, ...

[Show more]

Preview 3 out of 18  pages

  • August 15, 2024
  • 18
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • WGU D335
  • WGU D335
avatar-seller
JPNAOMISTUVIA
WGU D335: Introduction to Python
(Sections 1-4)
Input

A program gets data, perhaps from a file, keyboard, touchscreen, network, etc.




A
Process




VI
A program performs computations on that data, such as adding two values like x + y




TU
Output

A program puts that data somewhere, such as to a file, screen, or network.
IS
computational thinking,
OM

creating a sequence of instructions to solve a problem


algorithm
NA


A sequence of instructions that solves a problem


Python interpreter
JP




a computer program that executes code written in the Python programming language.


interactive interpreter

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

,Code

a common word for the textual representation of a program


line
row of text


prompt




A
indicates the interpreter is ready to accept code




VI
statement
a program instruction




TU
Expressions
code that return a value when evaluated
IS
cariables
OM

named references to values stored by the interpreter


print()
function that displays variables or expression values
NA



'#"
character tha denote comments, which are optional but can be used to explains portions
of code to a human reader
JP




string literal
text enclosed in quotes (single or double) and can contain letters, numbers, spaces, or
symbols


Why would a programmer add

, end=' ' inside of print()?

To keep the output on the same line


print(variable_name) without quotes
to output the value of a variable




A
\n
newline character; output can be moved to the next line




VI
whitespace




TU
any space, tab, or newline


variable = input()
IS
reads a user-enter string and changes it into a variable
OM

type
determines how a value can behave


int()
NA


converts a string to an integer


syntax error
violating a programming language's rules on how symbols can be combined to create a
JP




program


runtime error
program's syntax is correct, but the program attemps an impossible operation, such as
dividing by zero or multiplying strings together

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller JPNAOMISTUVIA. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $10.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

80461 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$10.99
  • (0)
  Add to cart