Summary: Programmeren
- This + 400k other summaries
- A unique study and practice tool
- Never study anything twice again
- Get the grades you hope for
- 100% sure, 100% understanding
Read the summary and the most important questions on Programmeren
-
1.1 Printing text
This is a preview. There are 3 more flashcards available for chapter 1.1
Show more cards here -
What does the print() function do?
It prints whatever is between the round brackets -
Because Hello is a word, a piece of text, it needs to be.......
Enclosed in quotation marks --> ' ' -
Printing in Python can be done with print and round brackets () and single quotes (' '). But, it can also be done with?
Doublequotes ( " " ) -
How can you print multiple lines in python?
- With the \n character (no spaces before or after the character)
- Triple quotes (" " ")
-
What is the difference between printing text and printing numbers? Numbers are printed like this: print(5), while text...
Can be printed between singles or double quotes.
print('Correct!')
print("Correct!") -
1.2 About Assignments
This is a preview. There are 11 more flashcards available for chapter 1.2
Show more cards here -
Why do we want store values before printing?
Because the same piece of information is present in printed text multiple times. -
How do we call text in programming?
Strings -
What is the difference between a triple quoted string and a single or double quoted one?
Triple quotes strings may contain newlines -
How do you use a f-string?
You need to place the letterf before a string, than use thevariable inside it. Like this:f "Hello {name}" -
How is a variable called when it remains the same in an entire program?
It has to role as fixed value
- Higher grades + faster learning
- Never study anything twice
- 100% sure, 100% understanding