- Study guides, Class notes & Summaries
Looking for the best study guides, study notes and summaries about ? On this page you'll find 1 study documents about .
All 1 results
Sort by:
-
Exam (elaborations)
CNM 140 Exam 2 with Questions and Answers
-
---16June 20252024/2025A+
- CNM 140 Exam 2 with Questions and Answers 
 
What placeholders are used when dealing with f-strings? 
a. ( ) 
b. [ ] 
c. { } 
d. : ANSWER c. { } 
 
Use the price variable and f-string syntax to display the price with two decimals: 
price = 69 
txt = f"The price is {__________} dollars" 
print(txt) 
 
a. :.2f 
b. price:.2f 
c. price * 100.00 
d. price:2f ANSWER b. price:.2f 
 
Use an if statement inside the f-string placeholders to return 'perfect' if the price is 100, and 'ok' ...
-
$15.99 More Info
examchief78