Question: Python 3.7.8 Create 2 vars and assign them values of Harry and Carry respectively. # Create a new string consisting of alternating letters between the

Python 3.7.8

Create 2 vars and assign them values of "Harry" and "Carry" respectively. # Create a new string consisting of alternating letters between the two. # Ex: If the strings were CAT and BED, the result would be CBAETD

Given the list NUMS, using a loop, create a new list # containing all the odd integers. NUMS = [0,1,2,3,4,5,6,7,8,9]

#5) Using the range function and a for loop, print the following sequences: #5.1) 0

#5.2) 0,1,2,3

#5.3) 5,6,7,8,9

#5.4) 1

#5.5) 0,7

#5.6) all even numbers from 0 to 25

#5.7) all odd numbers from 37 to 74

#5.8) 4,8,12,16,20

#6) Given NUMS, write a function that prints the difference between # each element and its previous element. NUMS = [1,23,32,9,47,3,65] # Example: given [2,3,5], output would be: # 1 # 2

#7) Given a list of numbers, write a function DOUBLE that returns True of each # element is exactly double the previous, and False otherwise. # Test with the following: a = [1,3,5,7] b = [1,2,3,4] c = [5,10,20]

#8) Given nums, write a function BIG that prints the index of each # element that is larger then the previous 2. nums = [1,23,32,9,47,3,65]

#9) Given a string of characters such as "local area network", write a # function acronym, that takes any string as input and prints the # appropriate acronym, in this instance "LAN".

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!