Jul-27-2020, 10:30 AM
Hi guys! so i have been able to get to almost all of this question correct, which i am quite proud of!!!
But this last bit is not showing the correct information.
I need the
To say The definition of "example" word1 is definition1. But at the moment it keeps returning as ('The definition of', 'word1definition1').
I cant for the life of me figure out why, when i try another way, it keeps saying syntax error on the word definition.
Any insight would be awesome :)
But this last bit is not showing the correct information.
1 2 3 4 5 6 7 8 9 |
def look_up_definition(): """ To find the user the definition of the user's input and priint a suitable message if found or not found """ user_input = input ( 'Please enter your word: ' ) if user_input not in list (glossary): return ( str (user_input) + ' not found in glossary.' ) else : return ( 'The definition of' ) ,user_input + (glossary [user_input]) |
1 |
return ( 'The definition of' ) ,user_input + (glossary [user_input]) |
I cant for the life of me figure out why, when i try another way, it keeps saying syntax error on the word definition.
Any insight would be awesome :)