-
Notifications
You must be signed in to change notification settings - Fork 0
Sindhu python #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
abb96ef
6024ed2
677d2e9
4db3289
5c4fe06
cb0e366
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -4,6 +4,11 @@ | |||||||||||
| def justPrint(text): | ||||||||||||
| '''This function prints the text passed as argument to this function''' | ||||||||||||
| print(text) | ||||||||||||
| base_value = 10 | ||||||||||||
| b=20 | ||||||||||||
|
Comment on lines
+7
to
+8
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. JAS - Just a suggestion I noticed we've added some arithmetic calculations (
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Non-Descriptive Variable Name The variable name 'b' is non-descriptive. Renaming it to something like 'increment_value' or 'limit' would make the code more self-documenting.
Suggested change
Reasons & GapsReasons
Gaps
|
||||||||||||
| difference = increment_value - base_value | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Functional Issue: Undefined Reference The variable
Suggested change
|
||||||||||||
|
|
||||||||||||
| if __name__ == '__main__': | ||||||||||||
| justPrint('Hello Sindhu12390') | ||||||||||||
| justPrint('Hello Sindhuja') | ||||||||||||
|
|
||||||||||||
|
|
||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-Descriptive Variable Name
The variable name 'a' is a single character and lacks descriptive context. Use a name that reflects the variable's purpose, such as 'base_value' or 'offset'.
Reasons & Gaps
Reasons
Gaps