Learn practical skills, build real-world projects, and advance your career
!pip install jovian --upgrade --quiet
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
name = Abhiram
--------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-2-3b6dcac74bb2> in <module> ----> 1 name = Abhiram NameError: name 'Abhiram' is not defined
person =dict()
person['name']= (Abhiram)
person['age']=25
person['has android phone']=True
--------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-3-00dbda83b8a2> in <module> 1 person =dict() ----> 2 person['name']=Abhi 3 person['age']=25 4 person['has android phone']=True NameError: name 'Abhi' is not defined
print("{} is aged {}, and owns an {}.".format(
    person["Name"], 
    person["Age"], 
    "Android phone" if person["HasAndroidPhone"] else "iPhone"
))
--------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-6-8a4b58b820c0> in <module> 1 print("{} is aged {}, and owns an {}.".format( ----> 2 person["Name"], 3 person["Age"], 4 "Android phone" if person["HasAndroidPhone"] else "iPhone" 5 )) KeyError: 'Name'
import jovian