1. Create a tuple with the strings in it: Batman, Superman, Aquaman, Deadpool. Now
create a FOR loop that uses the len function to loop through the list. On each
iteration, check if the tuple item is Deadpool. If it is NOT, then print the tuple item. If
it is, do nothing. You are required to use loop using the len and index to get receive
the full amount of points on this question.
2. Create a variable holding the string “Avengers Assemble” Now create a loop that
prints each letter on a separate line. At the end, just print a “!”
3. Create a tuple called friends that holds the strings: Monica, Joey, Chandler. Now print
the element in the tuple that says Joey using the index of the tuple. Now create a
variable called married that will concatenate indexed items from the tuple to create
the string “Monica and Chandler”. Now print married.
4. Create the friends tuple from 7 again. Now create a variable that will hold the
indexed tuple item that has “Joey” in it. Now create another variable that will hold
ONLY the “oe” from the previous variable using string slicing. Print the last variable.
(Output should say “oe”)
5. Create a function named monthDays with a parameter of tup. Within the function,
create a loop that goes through the months tuple. One each iteration, test these:
If the iteration holds the strings January or March, print that month name and then ”
has 31 days”.
If the iteration holds the month February, print that month name and then ” has 28
days”.
If the iteration holds the month April, print that month name and then ” has 30 days”.
Outside of the function, create a tuple called months that holds the strings: January,
February, March, April. Now pass the tuple into a function call for monthDays.
6. For this one use the random library. First, create a function called getRands that will
have a parameter called ceiling. Within that function, create a loop that will loop the
10 times and in each loop, it creates a variable that is an integer between 1 and the
number in the variable ceiling. Then test if that integers is less than 3. If it is, print
that number. Now call getRands and pass in the argument: 10. You must have this
answer in function form to get credit.

Purchase answer to see full
attachment




Why Choose Us

  • 100% non-plagiarized Papers
  • 24/7 /365 Service Available
  • Affordable Prices
  • Any Paper, Urgency, and Subject
  • Will complete your papers in 6 hours
  • On-time Delivery
  • Money-back and Privacy guarantees
  • Unlimited Amendments upon request
  • Satisfaction guarantee

How it Works

  • Click on the “Place Order” tab at the top menu or “Order Now” icon at the bottom and a new page will appear with an order form to be filled.
  • Fill in your paper’s requirements in the "PAPER DETAILS" section.
  • Fill in your paper’s academic level, deadline, and the required number of pages from the drop-down menus.
  • Click “CREATE ACCOUNT & SIGN IN” to enter your registration details and get an account with us for record-keeping and then, click on “PROCEED TO CHECKOUT” at the bottom of the page.
  • From there, the payment sections will show, follow the guided payment process and your order will be available for our writing team to work on it.