Skip to content

Commit

Permalink
change hello_world.py by defining a function to print hello world
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoqiang-zhou-unc committed Aug 29, 2024
1 parent 2ede4dd commit 03f882c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions hello_world.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# define a function to print 'Hello, World!'
#def hello_world():
# print("Hello, World!")
def hello_world():
print("Hello, World!")

# run the function to print 'Hello, World!'
#hello_world()

print("Hello, World!")
hello_world()

0 comments on commit 03f882c

Please sign in to comment.