First Python Program: Modified “Hello, World!”
You have traditionally seen printing of “Hello World!” string as the first program in many languages. Some more tricks are here in your first program itself.
Source Code
|
|
Run Output
Notes
- The + sign can be used in string for concatenation (side by side addition)
- The semicolon (;) character as line terminator is usable in python, but it is highly discouraged.
- The print() function in python gives the newline automatically. For this reason the \n symbol may not be found so frequently in python. Still, it is a valid escape sequence within strings.
Suggested Filename(s): modif-hello-world.py, hello.py
Created: 19-Aug-2026 16:26 | Updated: 17-Sep-2026 02:20|
