-
Notifications
You must be signed in to change notification settings - Fork 22
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
Comments added #3
base: master
Are you sure you want to change the base?
Conversation
self.number = 0 #This step creates a new attribute named 'number' and it's value is '0' | ||
def some_function(self): #some_function is a method named 'Some Function' | ||
print "I got called." #when calling to this method it prints 'I got called' | ||
def add_me_up(self, more): #another method with a prameter 'more'. |
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.
Spelling error , it should be "parameter".
@@ -1,23 +1,31 @@ | |||
# SAMPLE CODE TO UNDERSTAND THE CONCEPT OF DICTIONARIES IN PYTHON | |||
|
|||
cities = {'CA': 'San Francisco', 'MI': 'Detroit','FL': 'Jacksonville'} | |||
#The pythond Dictionaries have two things, |
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.
It should be "python" and not "pythond".
@@ -1,23 +1,31 @@ | |||
# SAMPLE CODE TO UNDERSTAND THE CONCEPT OF DICTIONARIES IN PYTHON | |||
|
|||
cities = {'CA': 'San Francisco', 'MI': 'Detroit','FL': 'Jacksonville'} | |||
#The pythond Dictionaries have two things, | |||
#1st one is the key and secon one is the value |
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.
Avoid using short forms (like "secon" etc)
cities = {'CA': 'San Francisco', 'MI': 'Detroit','FL': 'Jacksonville'} | ||
#The pythond Dictionaries have two things, | ||
#1st one is the key and secon one is the value | ||
#The function of the dictionary is when calling the key in dic. it returns the value in the key |
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.
Frame the sentences properly without using short forms.
New Example Comments added