Required Length

ABC 411

Problem 5 of 50

Easy

What to do

Given a password string and a minimum required length, check if the password has at least that many characters. Return 'Yes' if len(password) >= min_length, 'No' otherwise.

Key Concepts

if-statements string length input and output

Examples

Input: password = 'chokudai', min_length = 5

Output: Yes

Input: password = 'ac', min_length = 3

Output: No

Tips for Beginners

  • Focus on understanding the logic, not memorizing syntax
  • Use print statements to debug your code
  • Don't worry about input parsing - the function handles that for you
  • If stuck, try writing out your solution on paper first

Python Editor

Loading Python...