Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
### Code wrote by Roshan, I changed all of the values within the dictionary to be all lower case
def definition(value):
Search={'family':'sedan','family and space':'suv','storage':'pickup',"others":"van",
"family and space and storage":"hatchback","fancy":"convertable","only for 2":"couple"}
x=Search.get(value)
return x
def nat(e):
if 'family' in e:
l="family"
elif "family" in e or "space" in e or "comfortable" in e:
l="family and space"
elif "storage" in e or "business" in e:
l="storage"
elif "public" in e or "van" in e:
l="others"
elif 'fancy' in e or"opens from top" in e or"convertible" in e:
l="fancy"
elif "me and my" in e or"couple" in e or "just married"in e:
l="only for 2"
return l
### End of code wrote by Roshan