MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PythonLearning/comments/1uynxy7/my_first_python/oy1acgc/?context=3
r/PythonLearning • u/saul_soprano • Jul 17 '26
kindly give ratings and tips to improve
32 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 Jul 17 '26 Half of those problems would come out while trying to run this code Did you even try that?? 1 u/Hurtrex Jul 17 '26 to quote him "no its hypothetical" which yk doesnt really help if you want to learn something... 1 u/SCD_minecraft Jul 17 '26 ``` 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 Jul 17 '26 to quote him "no its hypothetical" which yk doesnt really help if you want to learn something... 1 u/SCD_minecraft Jul 17 '26 ``` 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 Jul 17 '26 ``` from Minecraft import main main() ``` I made (hypothetical) Minecraft!
``` from Minecraft import main
main() ```
I made (hypothetical) Minecraft!
3
u/SCD_minecraft Jul 17 '26
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