In python:
Create a list called numten that contains ten numbers go through the list and list the even and odd numbers
answer)
numten=[3,2,5,12,54,3,6,2,4,6]
evenlist=[]
oddlist=[]
for i in range (0,len(numten)):
if(numten[i]%2==0):
evenlist.append(numten[i])
else:
oddlist.append(numten[i])
if(len(evenlist)!=0):
print("Even numbers are ",evenlist)
if(len(oddlist)!=0):
print("Odd numbers are",oddlist)

output:

if numten=[2,4,6,2,12,4,8,10,98,100]
then output is :

In python: Create a list called numten that contains ten numbers go through the list and...
Exercise 1 - Create a List to Sum Values Write a python script that sums the values in a list called add_list that contains the following values: (10, 2, -4, 8). Make sure you include a for loop when iterating through the list to sum the values. Take screenshots of the code and output. Exercise 2 – Create a Dictionary Write a python script that prints a dictionary where the key numbers are 1, 2, 3, 4, and 5 and...
IN PYTHON Implement a function called printGreater() that accepts a list of numbers numLst and a number num. The function then iterates through the lst printing all numbers in the list that are greater than num. The results need to be printed on one line. >>> printGreater([200, 45, 270, 3, 7, 1000, 385, 20], 50) 200 270 1000 385 >>> printGreater([], 50) >>>
In Python! Create the program that print out only odd numbers 1,3,5,7,9 Use either a while loop or a for loop to print only odd numbers 1, 3, 5, 7, 9 *tip: you can use range () function, or a condition with ‘break’ (e.g, while count < 10) In python!: Create a program that print out 12 months of a year and associated numbers (e.g., January 1, February 2…). Two lists should be created, and then loop through the list...
Suppose your program already has a list called nums, which contains several numbers. Write a for loop that will update every value in nums to be three times as big as it was before. (In Python)
# python making a list of numbers i want to use python to make a list of numbers like this A = [2,2,4,4,6,6,8,8,10,10.....................48,48,50,50] # it should be a total of 50 numbers long and contain 2 of each even number
IN PYTHON
write a program that asks the user to enter 10 numbers and store them in the list and then find the followings: • Maximum • Minimum prime numbers in the list • even numbers in the list • odd numbers in the list.
Please answer this question by using PYTHON: Create a list called sequences that is initialized to the following: ['tagtacta', 'catgat', 'gattaca', 'acta', 'gag'] for each item in the list use a function to transcribe it to RNA.
#Python 1.Write a function called difference() that accepts a list of numbers from the user and returns the difference between the largest and the smallest numbers in the list as follows: >>> difference() Please enter a list: [100, 102, 106, -10] 116 >>> difference() Please enter a list: [1,2,3,4,5,6,7,8,9,10] 9 >>>
Write a Python function called FiveNumberSummary(myList) that takes as input a sorted list of numbers and calculates and displays a five-number summary of the list. Given a list of numbers, a five-number summary of the numbers is defined to be the following: Minimum, First Quartile, Median, Third Quartile, Maximum. The first and third quartiles are simply the median of the first half of the numbers and the median of the second half of the numbers.
***PYTHON 3*** We are going to practice building some simple lists. Create a function called create_list. It takes 2 parameters, start and end both are integers. This function should return a list that contains all the numbers from start, to end inclusive. So you'll need a loop to count and just append that number into your list and return it. (5 pts ) lst = create_list(5, 10) lst would be [5, 6, 7, 8, 9, 10] It should be able...