Computer Science > QUESTIONS & ANSWERS > Edhesive 4.1 - 4.11 Questions & Answers | 50 Questions with 100% Correct Answers | Updated & Verifie (All)
4.1 Lesson Practice We use loops to: - ✔✔Repeat blocks of code 4.1 Lesson Practice Consider the following code: num = int(input("Enter a number, negative to stop")) while (num >= 0): print ( ... "You entered: " + str(num)) num = int(input("Enter a number, negative to stop")) print ("Done.") What is wrong? - ✔✔The line num = int(input("Enter a number, negative to stop")) should be indented so it is inside the loop 4.1 Lesson Practice - ✔✔Complete the activity. 4.1 Code Practice - ✔✔name = input("Please enter a name, Nope to end ") while (name != "Nope"): print ("Nice to meet you " + name) name = input("Please enter a name, Nope to end ") print ("Done") 4.2 Lesson Practice What is output? Select all that apply. [Show More]
Last updated: 3 years ago
Preview 1 out of 12 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Bundle for Edhesive Tests | Updated & Verified | with Complete Solution
By Eustace 3 years ago
$30
10
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Oct 30, 2022
Number of pages
12
Written in
All
This document has been written for:
Uploaded
Oct 30, 2022
Downloads
0
Views
239
Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·