Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

need help with python programming and how to correct find the solution to these problems. i have been running into constant issues. Q5: Given the

need help with python programming and how to correct find the solution to these problems. i have been running into constant issues.
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Q5: Given the following variables (4 points) - welcome = "Welcome to MiS665." - class T=75 - lectures =25 - HWs =8 - quiz =3 - final project = "By email, students must inform the instructor of their willingness to take the project before Apr, 19,2023 (Friday), " - policy = "No late submissions and make-up quizzes and exams are accepted." - deadline1 = "Jan. 29 (Sun.) 11:59 PM CT" Use format] or printifstring) to print the following string: Welcome fo MIS665. This course has 25 lectures, and each lecture is 75 minutes. There are 8 homework assignments and 3 quizzes. We do have a final exam. The final project is required for students targeting an " A " foc the final grades. By emaid, students must inform the instructor of their wiilingness to take the project before Apr, 19, 2023 (Friday). The policy of this course is "No late submissions and make-up quizzes and exams are accepted " The deadline for this. homework (Homework 1) is Jan. 29 (Sun.) at 11:59 PM CT. " hint replace the italio words with the relative variable names M = sat the variables (1 points) * print the string ( 3 points) Welcome to MIS665. This course has 25 lectures, and each lecture is 75 minutes. There are a homework assignsents and 3 quizzes. We do have a final exan. The final project is required for students targeting "A" for the final grades. By email, students must inforn the instructor of their willingness to take the project before Apr. 19, 2023 (Friday). The policy of this course is Tho late subnissions and nake-up quirzes and exan are accepted." The deadine for this honework (Honework 1) is Jan. 29 (5un.) 11159 PH Cr Q7: Grab "Hello" from the list (2 points) In [22]: M1 In [3]: M print("He11ol") Hello! Q8: What is the data type of (33,44) from the above list? (0.5 point) In [ ] : H integers Q9: Print all the keys from variable "course info" (1 points) In [33]: M course_info = { "course number": "Mr5665", "lecture time": 75 , "assignments";8, "quiz"::3\} In [13]: M print("course number", "MIS665", "1ecture time:75", "assignnents:8", "quiz:3") course number Mrs665 lecture timet75 assignments: 8 quiz:3 Q10: What is the data type of course info? ( 0.5 point) In [ ] M list Q11: Add ("final exam": 1) to is1 (1 points) Q13: Sort the values of Is2 (1 points) In[27]:MIIn[]=M Q14: Print the elements of Is1 one by one. (1.5 points) " hint: use for loop In []= Q15: Get all the kitchen appliances containing letter " d. (2.5 points) in [3]: In []=M Q16: Add ("final exam: 1) to course info (1 points) in [36]:h \{'course number"; 'MIS665', "lecture time': 75, 'assignments': 8, 'quiz': 3, 'finale exam': 1 \} Q17: Remove "lecture time" : 75 from course info (1 points) In [ ]: M Q18: Add "lecture time" to course_tuple (1.5 points) In [38]: M course tuple = ('course number', 'MIS665', 'assignments', 'quiz', 3, 'finale exam') In []:r Q19: What is the data type of ( 0.5 point) k = [Food processor," "Microwave", "Dishwasher", "Hand blender", "Pressure cooker," "Mixer Grinder", "Electric Kettle", "Rice cooker") In [ i: m Q20: Add "Air fryer" to k (1 points) In [41]:H e k is from Q19 ''Hand blender', 'Alr fryer', 'Mlcrowave', 'gice cooker', 'Electric Kettle', 'Food processor', 'Mixer Grinder', 'oishwashe Q21: Write brief descriptions of the Python data types we have leamed. (Use markdown lanagusge) (6 points) (double click this cell and write down your answers) - Numbers - Strings - The four fundamental data types of Python - Boclearr Q22: Fixs Buzz (4 points) Use foe loep and if, elif, else to prints the integers from 1 to 50 . For muatiples of 3 print "Fizz" instead of the number, and for the multoples of 5 print "Buzz". For numbers which are multiples of both 3 and 5 print "FizBuzz". " hint: the range of integers from 1.50 is range(1, 51), 51 is not included. Q23: Use try except to skip the error ( 2.5 points) In [46}= a=7b=a = a/b wilt generate Zerobivisiontrror c use try except to skip it and print( "The denominator in a fraction cannot be zerol") The denoninator in a fraction cannot be zerol Q24: Stop the loop when see "Yellow" (2.5 points) In [47]: M colors - ["White", "BLue", "Red", "Green", "Yellou", "Black", "Broun"] in ( )s k Q25: i starts at 0 , adding 1 to i each time and print i as long as 1 is less than 6 (2.5 points) In [49]=k+=0 Car1; f'Brands': 'BMN', 'Hade year', 2e21, 'Price': 4560e\}, Car2: \{'Brands't 'Ford', 'Made year'' 2ez2, 'Price', 3eeee\}, Car. 3: ['Arands': 'Tayota', 'Hade year'' 2022, 'Price'1 27ee0) 3eaeol, 'Car3': \{'firands', 'Toyota', 'Made year'; 2ez2, 'Price': 2yeoe\}\} Q28: Print all the numbers frem the given a list that solsty the following conditions: (2.5 points) - The number frust be diviside by 3 . - If the nurber is greater than 100 , then ship it and move to the next number - If the number is grealer than 200 , then stop the loop [55]: II numbers =[1,2,3,5,7,9,12,43,512,250,30,92,45,245,233,254]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 25th European Conference Adbis 2021 Tartu Estonia August 24 26 2021 Proceedings Lncs 12843

Authors: Ladjel Bellatreche ,Marlon Dumas ,Panagiotis Karras ,Raimundas Matulevicius

1st Edition

3030824713, 978-3030824716

More Books

Students also viewed these Databases questions