Sova
0
Q:

python naming conventions

#module names should be all lowercase
import mymodule
#normal variables are lowercase_with_underscores
my_variable = 'value'
#constants are UPPERCASE
CONSTANT = 'never changes'
#classes are UpperCaseCamelCase
class MyClass(self):
    pass
3
# Function gets name from user
def get_name():
    print("Hello what is your name?")
    name = input("My name is: ")
    print("Hello ", name)
    return name
1

New to Communities?

Join the community