Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suggest one further small extension or improvement of your own to the modified flashcard program. Outline what the extension does and briefly outline what additional

Suggest one further small extension or improvement of your own to the modified flashcard program. Outline what the extension does and briefly outline what additional algorithmic steps would be needed. Note that you are only required to describe the extension, as specified above, and do not need to implement it in code.

here is my code

run an infinte loop

while True:

# ask for user response

response = input('Is the definition right or wrong (enter right/wrong): ')

# convert to lower case

response = response.lower()

# remove the new line or carriage and spaces from start and and of string

response = response.rstrip()

# if the user entered correct words

if response in ['right', 'wrong']:

# show whether he entered correctly or not

if right_or_wrong == response:

print('Correct decision')

else:

print('Incorrect decision')

break

else:

# otherwise re loop to enter the words again

print('Please input the words correctly')

i am lost as to how to improve this. once answered can somebody explain to me how you got there. Thanks so much

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

Students also viewed these Programming questions