-
Notifications
You must be signed in to change notification settings - Fork 3
feb15.py #1
Copy link
Copy link
Open
Description
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)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels