this version also translates directly to other languages another correct pythonic alternative that groups the alternate values together is ans in [' ''yes'which reads pretty much like english be careful to use correct expression when you want to specify condition like this things get even strangerenter these conditions themselvesone at timedirectly into the shell' ='yor 'yes'no='yor 'yes' ='yand 'yes'no='yand 'yes'noor 'yes'noand 'yesthe meaning of ( or band of ( and bare exactly as discussed so far if each of the operands and are actually booleanbut more elaborate definitions are needed if an operand is not booleanval or means if bool( )val elseval and in similar veinval and means if bool( )val elseval this strange syntax was included in python to allow code like in the following example program ornotboolean py read and test if you likedefaultcolor 'redusercolor input('enter coloror just press enter for the default'color usercolor or defaultcolor print('the color is'colorwhich sets color to the value of defaultcolor if the user enters an empty string againthis may be useful to experienced programmersbhe syntax can certainly cause difficult bugsparticularly for beginnersthe not operator always produces result of type bool further topics to consider gives an application of python to the web it does not introduce new language features we have come to end of the new language features in this tutorialbut there are certainly more basic topics to learn about programming and python in particularif you continue in other places more on flow of control