Suppose i am taking input or various variables like a=raw_input("...............") //hello b=raw_input("................")//hi c=raw_input("...............")//hello d=raw_input("..........")//hello but i want to run a common function when input is hello
so instead of if a=="hello": fun() then again for b and then again for c then d and so on i have to apply the code for the specific variable , i want to run the function whenever in the code input is "hello" i am wondering is there is any way like if input=="hello": fun() i hope you get my point.. Help me out please Thanks in advance
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor