From fcd62320056c2227a70870b31bd49c020015510c Mon Sep 17 00:00:00 2001 From: 2495shweta <72907529+2495shweta@users.noreply.github.com> Date: Wed, 14 Oct 2020 23:27:52 -0700 Subject: [PATCH] Update P01_hello.py --- Programs/P01_hello.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Programs/P01_hello.py b/Programs/P01_hello.py index 5754bc3..f3ab0e9 100644 --- a/Programs/P01_hello.py +++ b/Programs/P01_hello.py @@ -1,9 +1,15 @@ # Author: OMKAR PATHAK # This program prints the entered message - +''' def justPrint(text): '''This function prints the text passed as argument to this function''' print(text) if __name__ == '__main__': justPrint('Hello') +''' + + +#method to print the entered message.(without using function) +text = input("Enter the message that you want to display: ") +print(text)