MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PythonLearning/comments/1uynxy7/my_first_python/oy35cs2/?context=3
r/PythonLearning • u/saul_soprano • 6d ago
kindly give ratings and tips to improve
29 comments sorted by
View all comments
3
This has so many problems
Comments are annotated with #, not //. Double slash is reserved for int division
#
//
input ALWAYS returns a string. While you can add 2 strings together, you might not divide one string by another. You need to cast to an int
input
ultimate variable is never read
ultimate
Whatever extension did you install, it is not a correct one. Syntax highlither highlights things it isn't supposed to
1 u/SCD_minecraft 6d ago Half of those problems would come out while trying to run this code Did you even try that?? 1 u/Hurtrex 5d ago to quote him "no its hypothetical" which yk doesnt really help if you want to learn something... 1 u/SCD_minecraft 5d ago ``` from Minecraft import main main() ``` I made (hypothetical) Minecraft!
1
Half of those problems would come out while trying to run this code
Did you even try that??
1 u/Hurtrex 5d ago to quote him "no its hypothetical" which yk doesnt really help if you want to learn something... 1 u/SCD_minecraft 5d ago ``` from Minecraft import main main() ``` I made (hypothetical) Minecraft!
to quote him "no its hypothetical" which yk doesnt really help if you want to learn something...
1 u/SCD_minecraft 5d ago ``` from Minecraft import main main() ``` I made (hypothetical) Minecraft!
``` from Minecraft import main
main() ```
I made (hypothetical) Minecraft!
3
u/SCD_minecraft 6d ago
This has so many problems
Comments are annotated with
#, not//. Double slash is reserved for int divisioninputALWAYS returns a string. While you can add 2 strings together, you might not divide one string by another. You need to cast to an intultimatevariable is never readWhatever extension did you install, it is not a correct one. Syntax highlither highlights things it isn't supposed to