subject

Read the following code: x = 1
while(x < 50)
print(x)
x = x + 1

There is an error in the while loop. What should be fixed?

Add a colon to the end of the statement
Begin the statement with the proper keyword
Replace the parentheses around the test condition with quotation marks
Use quotation marks around the relational operator

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:20
Write a program that prompts the user to input a string. the program then uses the function substr to remove all the vowels from the string. for example, if str = "there", then after removing all the vowels, str = "thr". after removing all the vowels, output the string. your program must contain a function to remove all the vowels and a function to determine whether a character is a vowel.
Answers: 2
question
Computers and Technology, 22.06.2019 20:50
What is the difference between windows 7 and windows 10?
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
Match the items with their respective descriptions.
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
What is a dashed line showing where a worksheet will be divided between pages when it prints? a freeze pane a split box a page break a print title
Answers: 1
You know the right answer?
Read the following code: x = 1
while(x < 50)
print(x)
x = x + 1

Th...
Questions
question
Mathematics, 16.11.2020 03:10
question
Mathematics, 16.11.2020 03:10
question
Social Studies, 16.11.2020 03:10
question
Computers and Technology, 16.11.2020 03:10
question
Mathematics, 16.11.2020 03:10
question
History, 16.11.2020 03:10
Questions on the website: 13722360