1. indentation Error
2. cannot perform mathematical operation on strings
3. hello2
4. hello2hello2
indentation Error
1. list
2. dictionary
3. array
4. tuple
list
1. list
2. tuple
3. class
4. dictionary
dictionary
1. ‘”Once upon a time…”, she said.’
2. “He said, ‘Yes!'”
3. ‘3’
4. ”’That’s okay”’
‘3\’
1. print('''tom ndick nharry''')
2. print(”’tomdickharry”’)
3. print(‘tomndicknharry’)
4. print('tom dick harry')
print(‘tom\ndick\nharry’)
1. 85.0
2. 85.1
3. 95.0
4. 95.1
85.0
1. print(‘hello’, ‘how’, ‘are’, ‘you’)
2. print(‘hello’, ‘how’, ‘are’, ‘you’ + ‘-‘ * 4)
3. print(‘hello-‘ + ‘how-are-you’)
4. print(‘hello’ + ‘-‘ + ‘how’ + ‘-‘ + ‘are’ + ‘you’)
print(‘hello-‘ + ‘how-are-you’)
1. int
2. bool
3. float
4. None
int
1. True
2. False
3. Machine dependent
4. Error
False
1. k = 2 + 3j
2. k = complex(2, 3)
3. k = 2 + 3l
4. k = 2 + 3J
k = 2 + 3l