


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A concise overview of essential computer programming concepts and definitions, ideal for exam preparation. It covers topics such as error types (indentation, value, name, type, logic), variable assignment and incrementing, data types (float, integer, string), program structure (input, process, output), and fundamental programming elements like algorithms, interpreters, and code. Additionally, it includes explanations of syntax and runtime errors, function parameters, and string manipulation techniques. This resource is designed to help students quickly review and understand key programming principles and terminology, enhancing their readiness for exams and practical coding tasks. It serves as a valuable reference for understanding the building blocks of computer programs and their execution.
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



indentation error - lines inside the program are not properly indented Value Error - invalid value used name error - The program tries to use a variable that does not exist. type error - An operation uses incorrect types - can occur if adding an integer to a string. logic error (bug) - program runs but does the wrong thing any blank space or new line - whitespace = - assigns a variable with a value increasing variables by a value of 1 - incrementing a number with a decimal point - float( ) A program consists of? - input, process, output A named item used to hold a value? - variable
Sequence of instructions that solves a problem. - Algorithm program that executes python programming. - python intreperter or IDE textual representation of a program - code row of text - line indicates the interpreter is ready to accept user input - prompt line of executable code - statement returns a value when evaluated - expression displays output to the screen and starts a new line - print( ) denotes a comment - # or """ text enclosed in quotes - string literal keep multiple print statements on one line - end=' '
\n - output advanced to the next line converts a string into an integer - int( ) predefined statements that are repeadly used - function Parameter(s) - what gets passed into a function value that get past into parameters - argument Variable created inside a function - scope ___ says a block of code will follow - : returns the index of the first occurrence of x in the string - find(x)