Write a program following input output in photos.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter7: Characters, Strings, And The Stringbuilder
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question

USE PYTHON

Write a program following input output in photos.

Thanks

Demo
$ python twttr.py
Input: Twitter
Output: Twttr
$ python twttr.py
Input: What's your name?
Output: Wht's yr nm?
$ python twttr.py
Input: CS50
Output: CS50
How to Test
Here's how to test your code manually:
• Run your program with python twttr.py. Type Twitter and press Enter. Your program should output:
Twttr
• Run your program with python twttr.py. Type What's your name? and press Enter. Your program should output:
Wht's yr nm?
• Run your program with python twttr.py. Type cs50) and press Enter. Your program should output
CS50
Transcribed Image Text:Demo $ python twttr.py Input: Twitter Output: Twttr $ python twttr.py Input: What's your name? Output: Wht's yr nm? $ python twttr.py Input: CS50 Output: CS50 How to Test Here's how to test your code manually: • Run your program with python twttr.py. Type Twitter and press Enter. Your program should output: Twttr • Run your program with python twttr.py. Type What's your name? and press Enter. Your program should output: Wht's yr nm? • Run your program with python twttr.py. Type cs50) and press Enter. Your program should output CS50
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Bare Bones Programming Language
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,