You are on page 1of 1

''' import math

x = math.pi
y = math.sqrt(x)
print("Value of pi is %f" % x)
print("\n Value of square root of pi is %f" % y)

import random
xy = random.random()
xyz = random.choice([1,2,3])
print("Value predicted is %f" % xy)
print("The random choice from range is ")

s = "spam"
print(s*3)'''

s = 'spam'
s = s.__add__('ni')
print(s)
print(ord('A'))
D = {'Hello':'Hi','Quality':4}
print(D['Hello']+'1')
bob1 = dict(name='Bob', job='dev', age=40)
print(bob1)
print(bob1)
bob2 = {'name':{'first':{'start':'Yo','Mid':'oo'},'last':'cool'}}
print(bob2['name']['first']['start'])
rec = {'name': {'first': 'Bob', 'last': 'Smith'}, 'jobs': ['dev', 'mgr'],
'age': 40.5}
print(rec)

You might also like