


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
Python Programming - Chapters 1 to 6 Latest exam with correct solutions def <function name.
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



definition and - ANSWERThe Boolean operator that only returns true if BOTH of its operands are true. or - ANSWERThe Boolean operator that returns true if EITHER of its operands are true not - ANSWERThe Boolean operator that returns true if its single operand is false return - ANSWERSpecifies the value to be returned by a function back to its function call time.sleep(seconds) - ANSWERInstructs the program to pause for the specified number of seconds : - ANSWERA colon marks the end of a statement and indicates that the next line should be the beginning of a new block IDLE - ANSWERPython's Integrated DeveLopment Environment, a program that lets you write code, test and debug, all in the one place.
Monty Python - ANSWERA British surreal comedy group after which Python was named. = - ANSWERassignment operator = - ANSWERassignment statement import - ANSWERloads an existing Python module into the current program block - ANSWERone of more lines of code grouped together with the same minimum amount of indentation while : - ANSWERbegins a pre-test loop if : - ANSWERbegins a binary selection statement break - ANSWERtells the program to immediately jump out of a while-block random.randint(low, high) - ANSWERreturns a random integer between (and including) the two integers we give it int(string) - ANSWERconverts the string argument to its integer form. str(number) - ANSWERconverts a numeric argument to its string form.
" - ANSWERDouble quotes, can be used to surround a string literal value end='' - ANSWERA keyword parameter for the print() function that causes the function to NOT add a newline at the end of the string.