Skip to content

CSCI156/CSCI156-Activity-10.1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Create a list m = [2, 4, 6, 8].

  1. Print the second element in the list.
  2. Create a new list fivem that has the elements 10, 20, 30, 40. Multiply m by 5 using a for loop, do NOT just create the list using fivem = [10, 20, 30, 40].
  3. Add 10 as an element to the list m and print m.
  4. What happens if you add 6 as an element to the list m? Do you get two 6’s or just one?
  5. Print the position of 8 in m.
  6. Delete 8 from m and print the new list.

About

The first activity for lists

Resources

License

GPL-2.0, MIT licenses found

Licenses found

GPL-2.0
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published