2.0/10
verdict: needs_serious_help
"Sloppy print statement with no imports or context"
lang: Python·1 lines
//your_submission
LazyPrinter.py
print("ola")//detailed_analysis
!
Lack of Imports
No imports whatsoever, did you even try to make this reusable or modular?
?
Hardcoded String
The string 'ola' is hardcoded, what if we want to change the greeting or language?
!
No Functionality
This code only prints a single word, where's the substance, where's the beef?
//suggested_fix
LazyPrinter_fixed.py
+def greet(language):
+ if language == 'portuguese':
+ print("ola")
+ else:
+ print("hello")