The above code works fine.
If you do choice==1
here,
When the title of the movie that the customer is trying to search is not the key value in the movie dictionary
I'd like to add the print('There is no such movie')
function.
So if you write like above, invalid syntax
appears in that red part and does not work properly. When pasted as a doctor strain, the function is output only to the search==input('')
portion, but not the latter portion.
For your information, I entered the Department of Computer Engineering this time, so I am learning Python for the first time!
python
© 2024 OneMinuteCode. All rights reserved.