0

Python 3 not in question

let's say I have I have something like this: question1 = input ('what is your favourite colour?') question2 = input ('what is you favourite city?') answer1 = ['red', 'blue', 'green] answer2 = ['Paris', 'Amsterdam', 'Berlin'] |now, I want to get the input and: if input from question1 not in answer1 and input from question2 not in answer2:| print('bad choices') else('good choices') how can I write this?

22nd Feb 2018, 3:44 AM
Tiago Silva
3 Answers
22nd Feb 2018, 4:23 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
0
cool Nomeh, perfect. Now I can apply and adapt if needed.
22nd Feb 2018, 4:29 AM
Tiago Silva
0
thank you Kazi. only noticed you answer now
22nd Feb 2018, 1:06 PM
Tiago Silva