Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use python 3 to let those programs return None when an invalid input appear Question 1. If the input is not a string, let it

image text in transcribed

Use python 3 to let those programs return None when an invalid input appear Question 1. If the input is not a string, let it return zerow def problem one(test_string): p=len(test_string) problem one=test_string[p::-1]+ return problem one Question 2.4 If the input is not a string, let it return zero- def problem two(test sentence): problem two-test sentence.split() return problem two Question 3. If the input is not a int & list, let it return zero- def problem threelin number, in list): problem three=in number in in list- return problem three Question 4. If the input is not a int, let it return zero- def problem four(in number): total = 0% for i in range(1, in number + 1):- total += jk return total print(problem four- Question 5. If the input is not a list let it return zero def problem fivelli one, li two):* result = 12 for num in lione: if num not in result: result.append(num) for num in li two: if num not in result: result.append(num)

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

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions