Assignment: Event: the rate of lung cancer, Exposed: group of smokers, Non- exposed: non-smokers,
If 17 smokers have lung cancer and 83 smokers do not have lung
cancer. Also, if 1 non-smoker has lung cancer, and 99 non- smokers do not have lung cancer. What are the odds that smoking, and lung cancer are associated? Calculate the CI and report if the odds of getting cancer due to smoking is significant. Due: Monday, August 29, 2022 Use Python to answer these questions 1) Write a program to sum the natural numbers from 1 to 10 and write it out to a file.
Write a program to read the given list and print the length of elements in the list as another list in the format Output_list = [Mosquito transmitted diseases: ‘length’ , Dengue: ‘length’ , Malaria: ‘length’ , Chikungunya: ‘length’ , Yellow Fever: ‘length’ ]
3) Values = [30, 10, 22]
Write a program to change the values of the list by double its value. Print the output as a list (i.e. output: values_out = [60,20,44]).
4) list1 = [2, 4, 6, 8, 10, 12, 14, 16]
list2 = [20, 8, 28, 12, 30] Write a program to change the values of list1 by double its value and print the common doubled values in list2 and print the output as another list (output_list). (Hint: Use nested for loop). 5) Use a nested for loop and condition statements (if, elif, else) to only write numbers less than 12.
6) Write a program with nested for loop to find prime numbers from 2 to 100.