CCE 170 Exam 2, Python Questions and Answers
In google colab python notebook, you can have text cells/blocks between runnable code true or false - Answer-true in python, the code which dictates how a "text cell" is formatted is also known as - Answer-markdown to use a variable like "x", you must enter this line of code before using the variable equation- dim X as VARIABLE - Answer-false what is an ex. of an integer - Answer-53 which lines of python code will import math library? - Answer--IMPORT math -FROM math IMPORT* how would you compute c=sqrt(a^2+b^2) - Answer-a=1 b=2 c=(a**2+b**2) print(c) or a=1 b=2 c=(a**2+b**2)**0.5 print(c) what is the output? a=32 b=23 c="bob" d=a+b print(d,a) - Answer-55 32 a=32 b=23 c="bob" d=a+b print(d,c) - Answer-55 bob a=32 b=23
Schule, Studium & Fach
- Hochschule
- CCE
- Kurs
- CCE
Dokument Information
- Hochgeladen auf
- 5. märz 2024
- Anzahl der Seiten
- 4
- geschrieben in
- 2023/2024
- Typ
- Prüfung
- Enthält
- Fragen & Antworten
Themen
-
cce 170 exam 2 python questions and answers
-
in google colab python notebook you can have text
Ebenfalls erhältlich im paket-deal