WGU D335: Introduction to Python (Sections 1-4) BEGINNER FRIENDLY AND PERFECT FOR EXAM PREPARTION
4 keer bekeken 0 aankoop
Vak
WGU D335
Instelling
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,
...
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
Voordelen van het kopen van samenvattingen bij Stuvia op een rij:
Verzekerd van kwaliteit door reviews
Stuvia-klanten hebben meer dan 700.000 samenvattingen beoordeeld. Zo weet je zeker dat je de beste documenten koopt!
Snel en makkelijk kopen
Je betaalt supersnel en eenmalig met iDeal, creditcard of Stuvia-tegoed voor de samenvatting. Zonder lidmaatschap.
Focus op de essentie
Samenvattingen worden geschreven voor en door anderen. Daarom zijn de samenvattingen altijd betrouwbaar en actueel. Zo kom je snel tot de kern!
Veelgestelde vragen
Wat krijg ik als ik dit document koop?
Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.
Tevredenheidsgarantie: hoe werkt dat?
Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.
Van wie koop ik deze samenvatting?
Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper JPNAOMISTUVIA. Stuvia faciliteert de betaling aan de verkoper.
Zit ik meteen vast aan een abonnement?
Nee, je koopt alleen deze samenvatting voor €10,16. Je zit daarna nergens aan vast.