What will be the output of the following Python script: * a = 15 * b = a / 2 * print(b)
Added by Kaitlyn C.
Step 1
a = 15 Show more…
Show all steps
Your feedback will help us improve your experience
Paul Gabriel and 91 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Consider the following code. What prints? a=’2’ b=’4’ print(a+b)
Urvashi A.
Consider the following python code. What is the output? def f(x = 50, y = 50): return(x+y, x-y) x, y = f(y = 100, x = 50) print(x, y)
What will be the output of the following program? 10 Read $A, B, C, D$ 20 Data $8,10,6,2$ 30 Let $S=D-A /(B-C)+A$ 40 Print $S$ 50 End (1) $0.5$ (2) 10 (3) 8 (4) 9
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD