Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python please! hw4 part4.py (Worth 10 points) Finally, create a program that determines whether a subject can be studied or not First, the program must

image text in transcribed

image text in transcribed

python please!

hw4 part4.py (Worth 10 points) Finally, create a program that determines whether a subject can be studied or not First, the program must ask the user to enter ten different subjects, and store those subjects in a list. Once the list contains the ten subjects, the program must use the following two rules to determine how each subject should be printed back out to the user. 1. If the subject ends in ology" print out You can study SUBJECT 2. Otherwise, simply print the subject: SUBJECT is not real! For these inputs, you can assume the following: The words entered will be in all lowercase The words entered will be at least 6 characters long (HINT You will want to use string slicing to check if the string ends with "ology Review Lecture 08 (Strings and More) for details on how to use slicing.) You may not use any built-in Python methods, such as endswith to check if the string ends in "ology" or not. (See the next page for sample output.)

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

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago