Why does Python not return when you write the if conditional statement in the function...

Asked 2 years ago, Updated 2 years ago, 16 views

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

2022-09-20 22:14

1 Answers


2022-09-20 22:14

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.