Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started