Question: Pleaae help me find the etror in my python program # program using a string and the word in def main ( )
Pleaae help me find the etror in my python program
#
program using a string and the word in
def main:
favorite fruit input What is your favorite fruit?
favoritefruit favoritefruit.lower
# Convert input to lowercase for case insensitivity
# Check if the input contains the word "apple" using string slicing
if "apple" in favoritefruit:
printYou like apples!"
else:
printYou didn't say you liked apples."
main
def analyzestringinitials:
analyzestring inputinitials
# Check if initials are present in any case combination
initialspresent anyinitialslower in word.lower for word in words
if initialspresent:
printour initials are present in the string."
else:
printYour initials are not present in the string."
def main:
initials inputEnter your initials:
# Perform analysis
main
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
