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
Dominik [7]
3 years ago
9

Initialize a list. ACTIVITY Initialize the list short.names with strings 'Gus', Bob, and 'Ann'. Sample output for the given prog

ram Gus Bob Ann 1 short_names- Your solution goes here 2 # print names 4 print(short_names[0])
Computers and Technology
1 answer:
Ksenya-84 [330]3 years ago
3 0

Answer:

shortNames = ['Gus', 'Bob','Zoe']

Explanation:

In this assignment, your knowledge of list is been tested. A list is data structure type in python that can hold different elements (items) of different type. The general syntax of a list is

listName = [item1, "item2", item3]

listName refers to the name of the list variable, this is followed by a pair of square brackets, inside the square brackets we have items separated by commas. This is a declaration and initialization of a list with some elements.

The complete python code snippet for this assignment is given below:

<em>shortNames = ['Gus', 'Bob','Zoe']</em>

<em>print(shortNames[0])</em>

<em>print(shortNames[1])</em>

<em>print(shortNames[2])</em>

You might be interested in
The smaller RAM a computer has, the more software you can have open without impacting the speed of your computer
dsp73
False, forsure mates but gotta love the question:)
4 0
3 years ago
¿Qué tipo de contenido es un archivo con extensión mp3?
DaniilM [7]

Answer:

Sonido

Explanation:

3 0
3 years ago
Substances become a form of “self-soothing” when one feels_______. a) stressed b) anxious c) the need for a reward d) all of the
Fynjy0 [20]
The answer vshould be stressed
3 0
4 years ago
Read 2 more answers
Why is flash memory considered nonvolatile?
IgorLugansk [536]

Answer:

flash memory is considered non-volitile becuase it does not require power to hold data. thats why its usually used to store the BIOS on a motherboard, which is unlike volitile memory that needs to be powered (like RAM).

8 0
3 years ago
Assuming that the relations Instructor instiD InstName) and Working DeptName, InstName) have the following properties:
Rashid [163]
The correct answer is none of. Above
7 0
3 years ago
Other questions:
  • Write the definition of a method named printPowerOfTwoStars that receives a non-negative integer n and prints a string consistin
    10·1 answer
  • What is the primary criticism against a national identification system based on biometric data?
    13·1 answer
  • This operating system was used by individual computers and required users to type commands.
    9·1 answer
  • A(n) ____________________ is a set of programs that coordinates all the activities among computer or mobile device hardware.
    10·1 answer
  • You manage a server that users store their document files on. you are finding that some users are utilizing more space than they
    14·1 answer
  • can I do all my work in a notebook with Penn foster or do I have to type all of the answers in that little box?
    7·2 answers
  • The ________ view in access looks similar to an excel spreadsheet.
    5·1 answer
  • Is number 1 correct​
    7·2 answers
  • Computer network reduces the cost of operation​
    14·1 answer
  • Which of the following best describes the difference between the domain and path of a URL?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!