Skip to content

feb15.py #1

@kassandrahj

Description

@kassandrahj

examples of accepted variables names

Name =
name_of_data =
the_list =
the_dictionary =
examples =
assignment =
personal_list =
_mylist =
name12 =

#examples of unaccepted variable names
my-list =
1243persons =
124_persons =
un-acceptable =
True
def

#not recommended
type
list
bool
set
tuple
int
str

#examples of strings
'hello'
'world'

#intergers
1
2

#lists
[]
names = ['hello','world',2,56,78,['list','data type']]

#tuples
a_tuple =(45,'heaven',15)
other_tuples = (23,45,70,56,'gate')

#dictionaries
{}
my_dictionary = {'name':"users",45:'user','age':15}

#my set
an_EmptySet = ()
a_set =('variables','names','hello',2.5,6,8,80)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions