answer = input ("Type count for counting and convert for converting ")
if (answer == "count"):
text = input("Paste your text to count it: ")
print(len(text))
else(answer =="convert"):
print ("This function is not available yet")
I have tried with elif and else and it wont work on line 7. I cant understand cause its exactly as i saw on youtube learning just with different strings/output text. It says invalid syntax for the word else on line7. can anyone explain why it happens and how to fix it? I use Pycharm with newest python release
Aucun commentaire:
Enregistrer un commentaire