140. Python Program to Rewrite Squashed Code in PEP 8 Style
EasyPEP 8
Overview
Your first PEP 8 clean-up: the program works, but it's squashed into three crowded lines.
Problem Statement
The starter code prints a short profile, but it's hard to read. Rewrite it in PEP 8 style:
- one statement per line (no semicolons),
- one space on each side of
=and+, - one space after every comma, and none before it.
Keep the names and the output exactly the same.
The tests check only the output, and the starter code already prints the right thing. So the tests can't see your style: go through the three rules above yourself, line by line, before you submit.
Input
No input is required for this question.
Output
Name: Sunny
Age: 25
City: Pune
Next year: 26