mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Update python.html.markdown (#4228)
I read somewhere that conventions in naming variables are snake_case and camelCase.
This commit is contained in:
parent
c5cacb5a51
commit
9e87e133a3
@ -185,7 +185,7 @@ print("Hello, World", end="!") # => Hello, World!
|
||||
input_string_var = input("Enter some data: ") # Returns the data as a string
|
||||
|
||||
# There are no declarations, only assignments.
|
||||
# Convention is to use lower_case_with_underscores
|
||||
# Convention in naming variables is snake_case style
|
||||
some_var = 5
|
||||
some_var # => 5
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user