Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the output of the following code? assessment _ string = 'One last string for assessment. print ( assessment _ string.replace ( ' a

What is the output of the following code?
assessment_string = 'One last string for assessment.
print(assessment_string.replace('a','*').split()[1])
print (assessment_string.find('as'))
3. What is the output of the following code?
assessment_list =['One', 'more', 'list', 'of', 'strings']
assessment_list.append('again')
assessment_list.sort()
assessment_list.remove('One')
print(assessment_list.count('o'))
print(assessment_list.index('of'))

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