Check each line of code and try to figure out what the errors are. Modify the code to let it run successfully. 1) printRoses are red, violets are blue 2) if 10 > 7: print("Ten is greater than seven!") if 16 < 42: print ("Sixteen is less than forty-two !") 3) print(“A long time ago in a galaxy far, far away...");

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 30PE
icon
Related questions
Question

Please use python in answering. 

Check each line of code and try to figure out what the errors are.
Modify the code to let it run successfully.
1) printRoses are red, violets are blue
2) if 10 > 7:
print ("Ten is greater than seven!")
if 16 < 42:
print ("Sixteen is less than forty-two !")
3)
print(“A long time ago in a galaxy far, far away..."); I
Transcribed Image Text:Check each line of code and try to figure out what the errors are. Modify the code to let it run successfully. 1) printRoses are red, violets are blue 2) if 10 > 7: print ("Ten is greater than seven!") if 16 < 42: print ("Sixteen is less than forty-two !") 3) print(“A long time ago in a galaxy far, far away..."); I
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Types of Loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning