Problem 171816 · easy · Phase 01 Prerequisites & Setup

Conference Badge

input · print · f-strings · strings

You are printing name badges for a conference. Read two lines: a person's full name and their company. Print a three-line badge:

  1. the name wrapped in === and ===
  2. Company: followed by the company
  3. Name length: followed by the number of characters in the name

Examples

Input:
Ada Lovelace
Analytical Engines Ltd
Output:
=== Ada Lovelace ===
Company: Analytical Engines Ltd
Name length: 12

Constraints

  • Both lines are non-empty and contain no leading or trailing spaces.

Goals

  • Read two lines of text with input()
  • Build output lines with f-strings
  • Use len() on a string
Starting Python…