Skip to content

cs-fullstack-2019-spring/python-arraycollections-ic-marcus110379

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

python-arrayCollections-ic

Problem 1:

Create a function that returns an array from 0 to 100. Print the array in another function.

Problem 2:

We will keep having this problem until EVERYONE gets it right without help

Create a function that has a loop that quits with ‘q’. If the user doesn't enter 'q', ask them to input another string.

Problem 3:

Create a function with the variable below. After you create the variable do the instructions below that.

listNames = [“John”, “Paul”, “George”, “Pete”]

a) Print Pete’s name from the list

b) Change Pete’s name to ‘Ringo’, print the list

c) Add the name ‘Yoko’ to the list and print

Problem 4:

Create a function that contains a collection of information for the following. After you create the collection do the instructions below that.

Vocals/Robert
Guitar/Jimmy
Bass/John
Drums/Bonzo

a) Print the collection

b) Print who plays guitar

Problem 5:

Create a function that will have a hard coded array of Kenn, Kevin, and Erin several times in the array. Print out how many times Kenn, Kevin, or Erin appears in an array.

About

python-arraycollections-ic-marcus110379 created by GitHub Classroom

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published