0
When I write (It is in the Description)
Def sword(): Print ("Sword") In = input("") If In==("sword"): Sword() But then it says syntaxerror
3 Réponses
+ 5
@Coding Master you cant use upper and lowercase as you want. I think you are coding in Ruby so you can check sintax in
https://code.sololearn.com/c0yp6W5vky7B#py
Try to check difference between upper and lowercase, comparing with your code.
+ 1
python? first of all python is case sensitive so don't use Def, Print, or If...
use def, print, if.
also you defined it as sword()
but then rewrote it as Sword()
I think it should all work after you do these things, I'll go check your code now.
+ 1
yes, your code runs fine after I took off the unneeded upper case