[ create a new paste ] login | about

Link: http://codepad.org/J2he1D7D    [ raw code | output | fork ]

Python, pasted on Oct 9:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python


name = ["Mustafa", "Khaled", "Mohammed", "Abdullah"]

family = raw_input("Say Name from one of my Friends: ")

for name in name :
	if family == name:
		print "You are right! " + name + " One of my friends"
		break
else:
		print "You are wrong ;)"
exit


Output:
1
2
3
4
Say Name from one of my Friends: Traceback (most recent call last):
  Line 6, in <module>
    family = raw_input("Say Name from one of my Friends: ")
EOFError


Create a new paste based on this one


Comments: