M
M
Maxim2014-03-23 16:23:20
Python
Maxim, 2014-03-23 16:23:20

How to fix a syntax error in Python?

Please help me fix the error in the code.
The task of the program: Determine the gender if the full name is written in random order

print "Vvedite svoe FIO v sluchainom poryadke"
S = raw_input()

if "vich" in S
  print "Male"
else:
  print "female"

raw_input()

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
throughtheether, 2014-03-23
@Oper124

if "vich" in S
add a colon:
More .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question