Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python Language C Editor Submitted Versions 1-Python-LoneSumDebugging Highest grade 1 2 3 Your name and/or your partner's name #CSCT102 Section? # Python-Lone Su Debugging Problem

image text in transcribed
image text in transcribed
image text in transcribed
Python Language
C Editor Submitted Versions 1-Python-LoneSumDebugging Highest grade 1 2 3 Your name and/or your partner's name #CSCT102 Section? # Python-Lone Su Debugging Problem Statement Given three numbers, a, b, and print out their sum. If one of the values is the same as another value, it does not count towards the sum Modify the starter code in the Editor field until all test cases pass. Sample Input 1 5 anput 6 binput) 7 C Input) 8 9 lone sun-abic 10 11 - If a in [b, c): 12 lone_sum-lone sun la 13 14 - If ba or bc: 15 lone_sum - lone_sumb 16 17. If not in [a,b]: 10 lone_sum - lone_sum 19 20. else: 21 lone_sum - abc 22 23 print(lone_sun) Sample Output 1 Sample Input 2 Suomi e Editor Submitted Versions 2-Python-CatYears Highest grade 2 3 4 Your name and/or your partner's name #CSCI 102 Section Python-CatYears Problem Statement For the first two years of life, a cat year is equal to 11 human years. After that, each cat year equals 4 human years. Given some human's age (in years old), calculate a cat's age in cat's years. If the input is negative, inform the user with the following message: "Age must be a positive number." Sample Input 1 12 Sample Ouput 1 Cat's ege is 62 in cat's years Sample Input 2 1 Submit G 3-Python-Club Member Highest grade Editor Submitted Versions 1 2 3 4 Your name and/or your partner's name # CSCI1O2 Section # Python.club Member Problem Statement Given three inputs 1) a string that contains the names of the members in Club One, 2) a string that contains the names of the members in Club Two, and 3) a name that needs to be searched in these two clubs Determine if the given name is a member of Club One, Club Two, both clubs, on neither IF"tracy" is in both clubs, inform the user:"tracy is in both clubs." If "tracy" is in only one club, inform the user:"tracy is a member of Club (number)." IF "tracy is in neither club, Inform the user tracy is not found in either club." Sample Input 1 miguel, nhan, rena, tracy, orden, Jordan Submit

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_2

Step: 3

blur-text-image_3

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

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions