Summary: Python Programming
- 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 Python programming
-
1 Basic concepts of programming
This is a preview. There are 5 more flashcards available for chapter 1
Show more cards here -
Where does the CPU (Central Processing Unit) consist and their function?
- Memory Unit: temporarily stores data during processing.
- Control Unit: manages the flow of data and instructions
- Arithmetic Logic Unit (ALU): performs calculations and logical operations
- Memory Unit: temporarily stores data during processing.
-
What is the difference between input Unit and output unit?
The input unit are devices like keyboards, mice and scanners and the output units are devices like monitors, printers and speakers or produce the results of the processed data. -
What is the difference between hardware and software?
Hardware refers to the physical parts of the computer (CPU, memory, storage devices) while software refers to the programs and applications that tell the computer what to do (such as a operating system macOS or apps/games) -
What is a algorithm in programming?
An Algorithm is a sequence of instructions that a computer must perform to solve a problem. -
1.1 Errors
This is a preview. There are 2 more flashcards available for chapter 1.1
Show more cards here -
Which three errors can occur in a program?
- Syntax errors
- Runtime error
- Semantic errors
- Syntax errors
-
What are syntax errors?
Python can only execute a program if the program is syntactically correct, otherwise the process fails and returns an error message (syntax errors). -
What are runtime errors in programming?
Runtime errors occur when you run the program while the code has successfully compiled. These can happen when there is an invalid operation, unexpected condition or incorrect logic, causing it to crash. -
What are semantic errors?
When you have a semantic error your program wil run successfully but will not generate any error messages, but it will not do the right thing. (The program you wrote is not the program you wanted to write) -
2 Python programming
This is a preview. There are 1 more flashcards available for chapter 2
Show more cards here -
What is print() in python?
This is a built infunction thatinstructs thecomputer todisplay text on thescreen .- print = ("Hello, World!")
- print = ("Hello, World!")
-
What are comments in Python?
These are lines after a # , that are ignored by the interpreter during the execution of the program but can be used to enhance the readability of the code or can be used to prevent executing any specific parts of a code, while making changes or testing.
- Higher grades + faster learning
- Never study anything twice
- 100% sure, 100% understanding

















