You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
529 B
20 lines
529 B
def SimpleSymbols(ytr):
|
|
|
|
magic=ytr
|
|
|
|
if (ord(magic[len(magic)-1]) in range(97,123)) or (ord(magic[len(magic)-1]) in range(65,91)):
|
|
return "false"
|
|
|
|
for i in range(0,len(magic)):
|
|
if(ord(magic[i]) in range(97,123)) or (ord(magic[i]) in range(65,91)):
|
|
if i==0:
|
|
return str(i)+"false"
|
|
if ((magic[i-1])!='+') or ((magic[i+1])!='+'):
|
|
return "false"
|
|
|
|
return "true"
|
|
# keep this function call here
|
|
# to see how to enter arguments in Python scroll down
|
|
print(SimpleSymbols(raw_input()))
|
|
|
|
|