Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 Part I: Circle only the correct answers Name Zafarie tassan mohmuc ) Class What does list.append ( 1 0 ) do ? a )

1
Part I: Circle only the correct answers
Name Zafarie tassan mohmuc) Class
What does list.append(10) do?
a) Inserts x at the start of the list
b) Inserts x at a specified position
c) Adds x to the end of the list
d) Removes x from the list
Which of the following is a valid way to check if a key 'name' exists in a dietionary my_dict?
m) 'name' in my_dict
n) my_dict.contains('name')
o) my_dict.exists('name')
p) 'name' exists my_dict
To add multiple elements to a list my list, which method is used?
a) my list.append(['x','y'])
b) my_list.add(['x','y'])
c) my_list.extend(['[:x',y'y'}
d) my_list.insert (['x','y'])
For numbers =[1,2,3,4,5,6], what is the result of numbers 2:5?
a)2,3,4
(b)3,4,5
c)4,5,6
d)1,2,3
How can you retrieve the value associated with the key 'age' in a dictionary person?
q) person['age']
r) person value('age')
s) person.get('age')
t) person.retrieve('age')
Which syntax checks if 'color' is a key in my dict?
a) 'color' in my_dict
b) my_dict.has_key('color')
c) my_dict['color']
d) my_dict.keys('color')
What function is used to create a Pandas DataFrame from a dictionary data?
u. pd.DataFrame(data)
v. pd.createDataFrame(data)
w. pd.DataFrame.from_dict(data)
nd DataFrame(dict=data)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions