Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

help me python Given a list of strings, return true if each string's size is equal or greater than the one before, otherwise return false.

help me python

Given a list of strings, return true if each string's size is equal or greater than the one before, otherwise return false. The array will have 2 or more members.

image text in transcribed

returns false since string Jeremy comes before Mary and has more letters than Mary

Write the code for the function, you may use system functions such as len( x ).

def stringsIncreasing (names) :

Example 1: If the names list contains "Jay" "Mary" "John" "Jeremy" then the function call: stringslncreasing (names) returns true Example 2: If the names array contains "Jay" "Jeremy" "Mary" then the function call: stringslncreasing (names)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions

Question

What is DDL?

Answered: 1 week ago