0
اولین کد نویسیم (لطفا ایراد و اشتباهاتم بگید☺️💙)
https://sololearn.com/compiler-playground/cm6Q4UndSefH/?ref=app
1 Answer
+ 2
Just Iranian ,
Your code is running well...a lil suggestion to make it more perfect...
If you use capitalise() it will capitalise the first letter Alone and start guessing... even the input is mixed one(both uppercase and lowercase) so to avoid this conflict...
Let us use casefold() in if statement to make sure all are lower case and gives the right output for whatever input the user gives...
Here is the suggestion,
https://sololearn.com/compiler-playground/cIkiq6S05ohI/?ref=app