1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
lilavasa [31]
4 years ago
11

Which of the following code is correct? I: print("Programming is fun") print("Python") print("Computer Science") II: print("Prog

ramming is fun") print("Python") print("Computer Science") III: print("Programming is fun") print("Python") print("Computer Science") IV: print("Programming is fun") print("Python") print("Computer Science")
Computers and Technology
1 answer:
vfiekz [6]4 years ago
3 0

Answer:

None of the options is correct.

Explanation:

One of the simplest statements that you can write in Python is a print statement, which causes a message to be displayed on the screen. For example, the following statement causes the message Python programming is fun! to be displayed:

print 'Python programming is fun!'

Notice that after the word print, the Python programming is fun! was written inside a set of single-quote marks. The quote marks are necessary, but they will not be displayed. They simply mark the beginning and the end of the text that we wish to display.

Here is an example of how you would type this print statement at the interpreter’s

prompt:

>>> print 'Python programming is fun!'

After typing the statement you press the Enter key and the Python interpreter executes the statement, as shown here:

>>> print 'Python programming is fun!'

Python programming is fun!

>>>

Thus, the correct way to write the codes in the question is:

print 'Programming is fun'

print 'Python'

print 'Computer Science'

You might be interested in
Convert (675.6)8 to hexadecimal. (use base 2 instead of base 10 as the intermediate base for conversion).
Rufina [12.5K]

Answer:

1BD.C

Explanation:

Keep in mind that octal number has 3 binary fields where the right field is the number 1, the center field is the number 2 and the left field is the number 4. you need that your 3 fields sum the final octal digit.

For example :

  • (1)8 = (001)2
  • (2)8 = (010)2
  • (3)8 = (011)2

The hexadecimal number has 4 binary fields where the right field is the number 1, the center field is the number 2 , the next center field is the number 4 and the left field is the number 8. you need that your 4 fields sum the final hexadecimal digit.

For example:

  • (F)16 = (1111)2
  • (1)16 = (0001)2
  • (6)16 = (0110)2

Step 1: Split your octal number  in digits and convert to binary form

         6                             7                           5               .                  6

        110                          111                         101              .                110

Step 2: Join your binary number and split in groups of 4 elements from the point (Important note: If you miss some element to complete the groups at the left of the point complete with zero's at the left, else if you miss some element to complete the groups at the right of the point complete with zero's at the right)

binary complete:      110111101.110

binary in groups of 4:

                     1                1011                      1101            .                110

Complete the groups with zero's (Remember the important note):

               0001                1011                      1101            .              1100

Step 3: Calculate the hexadecimal number

                  1                      B                         D               .               C

     

4 0
3 years ago
Who innovated an aeroplane? ​
frutty [35]

Answer:

White brothers!!

Explanation:

5 0
3 years ago
What can detect 8 colors?
Semmy [17]
The color sensor if i’m correct
8 0
3 years ago
Read 2 more answers
Help me out-
olasank [31]

Answer:

1. Hard copy

Explanation:

It´s on an app so its a hard copy.

3 0
3 years ago
Read 2 more answers
Maria found a cupcake recipe on a cooking blog. However, she would like to read comments and suggestions before she begins bakin
Mnenie [13.5K]
Maria should use the Cooking blog that has known and verified information and step by step instructions Comments can lead to disaster and/or incorrect recipe use
8 0
4 years ago
Read 2 more answers
Other questions:
  • Is it possible to increase watch hours for a channel by making a playlist out of your videos for people to watch? Will it boost
    13·1 answer
  • What file formats can you safely use in a video presentation
    14·1 answer
  • Ayuda no encuentro el concepto de estas tres preguntas: ¿para qué sirve la administración en la ofimatica o informática? ¿Que so
    13·1 answer
  • Define a function below, sum_numeric_vals, which takes a single dictionary as a parameter. The dictionary has only strings for k
    12·1 answer
  • Which of the following is an example of a complex formula
    8·1 answer
  • printArray is a method that accepts one argument, an arrayof int. The method prints the contents of the array; it does not retur
    5·1 answer
  • Write a program that prompts the user for an integer, then asks the user to enter that many values. Store these values in an arr
    14·1 answer
  • Write the names of different types of communication.​
    15·2 answers
  • Can u guys report me as much as u can I’m trying to delete this account
    7·1 answer
  • How to hide location on iphone without them knowing?.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!