repl.it
@justinholman/

HelloWorld

Python

first program

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Here's the plain vanilla version
print("Hello World!")

# You could also create a variable for the print statment
message1 = "Hello World (stored in a variable)"
print(message1)

# Or maybe you'd like hello and world to be stored in separate variables
word1 = "Hello"
word2 = "World"
print(word1 + " " + word2 + (" using 2 variables!"))

# Perhaps you'd like to capture the date for this momentous occasion?
import datetime as dt
time1 = dt.date.today() 
print("Hello World! Today's date is " + str(time1))
Fetching token
?