Python Exam Bus 104 2023 With 100% Correct Answers
Code set on instructions you can give to a computer to make it perform a desired task program complete piece of code that can be run for a desired purpose algorithm sequence of defined, computer-implementable instructions to perform a calculation or solve a problem input returns the user's entry as a string to be assigned to a variable strings fundamental data types (the other type is a number) int integer (whole number) float floating point number (decimal points) string you can't concatenate a ___________ with an int or float, or do math with _____ PEMDAS python uses ______ to determine the order of operators round(number[, ndigits]) Display the floating point numbers in a dollar and cents format ceil rounds to the highest integer trunc truncates a number to the specified number of decimal places by removing digits of lesser precision floor rounds down to the next lower integer addition with integers and floats, + means... concatenation with strings + means... use functions int() and float() How to avoid adding strings with numbers
Información del documento
- Subido en
- 28 de julio de 2023
- Número de páginas
- 5
- Escrito en
- 2022/2023
- Tipo
- Examen
- Contiene
- Preguntas y respuestas