![JarretteWhitaker](/avatars/31050.jpg)
JarretteWhitaker
13.09.2019 •
Computers and Technology
Which of the following code is correct?
a. print("programming is fun") print("python is fun")
b. print("programming is fun") print("python is fun")
c. print("programming is fun) print("python is fun")
d. print("programming is fun) print("python is fun")
Solved
Show answers
More tips
- S Style and Beauty How to Choose the Perfect Hair Color?...
- C Computers and Internet Best iPad Games: Our Opinion...
- A Animals and plants Man s Best Friend: Which Dog Breed Is the Most Friendly?...
- H Health and Medicine 10 Simple Techniques on How to Boost Your Mood...
- G Goods and services How to Choose the Right High Chair for Your Baby?...
- S Style and Beauty Learn how to tie a keffiyeh on your head like a pro...
- S Style and Beauty How to braid friendship bracelets?...
Answers on questions: Computers and Technology
- C Computers and Technology What of the following groups on the Home tab contains the command for clearing the contents of a cell?...
- C Computers and Technology In which way(s) can numbers in a chart be formatted? question 37 options: currency percentages decimals all of these...
- E English SOMEOMEEEEEEEEEEEEEEEEEE PLEASEEEEEEEEEEEEEEEEEEE Ok Help me guys? Look at the first photo and then the second one is the questions...
- M Mathematics Ratio of 200m and 1km....
- H History How did the physical characteristics of the potato vary before and after the experiment? did it vary by potato type?...
- M Mathematics last winter, michigan had these snow fall totals (in inches) over a one month period: 9.2, 0.5, 6, and 5.9. what was the total amount of snow during the month?...
Ответ:
The options A and B are correct (as they are the same), assuming that each print function is in different lines.
Explanation:
It is assumed that this code is in Python language.
It is important to note that the options A and B are the same because they are equally written. In the same way, the options C and D are the same.
The options C and D are incorrect because the character (") is missing in the first print function. Let's take a look:
print("Programming is fun) < The " is missing
If you execute this code, python will generate a "SyntaxError".
On the other hand, the options A and B could be correct or incorrect.
It is incorrect if the code is in a single line. If you want to write this code in a single line, you should separate each print function with a semicolon as it follows:print("Programming is fun"); print("Python is fun")
It is CORRECT if the code is in two different lines as follows:print("Programming is fun")
print("Python is fun")
Thus, the options A and B are correct (as they are the same), assuming that each print function is in different lines.
Ответ: