Create a program that prints the sum of numbers in a list. A test list has been given to you.
💻 Template code
✅ Solution code
Create a program that takes an integer as input and creates a list with the following elements:
True boolean value if the number is even, False if it is odd.Print the list. Some examples are given to help check your work
💻 Template code
✅ Solution code
Print and remove all elements with a length greater than 4 in a given list of strings.
💻 Template code
✅ Solution code
Snookle the sheep wants to play a game. Given a list of positive integers and a main number, the player iterates through each element in the list and chooses to either add it or to subtract it from the current main number.
This is done by having the user enter either "add" or "subtract" every turn. The main number will be updated to the new value.