0

اولین کد نویسیم (لطفا ایراد و اشتباهاتم بگید☺️💙)

https://sololearn.com/compiler-playground/cm6Q4UndSefH/?ref=app

21st Mar 2025, 3:56 PM
Just Iranian
Just Iranian - avatar
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
21st Mar 2025, 5:02 PM
Riya
Riya - avatar