Welcome To The World Of Hacking


Learn Hacking|Teach Hacking|Learn To Secure|Learn To Code

Saturday

PYTHON TUTORIAL 21: FOR LOOP

data = {"samsung","sony","nokia","micromax"}

for brand in data:

    print "I am going to buy a "+ brand + " mobile phone"

OUTPUT:


No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...