From 4faefb7955c34380724b76740d60dcbaa3808501 Mon Sep 17 00:00:00 2001 From: AdityaWadkar <67093170+AdityaWadkar@users.noreply.github.com> Date: Fri, 1 Oct 2021 10:25:36 +0530 Subject: [PATCH] added few more ways to print a statement in python --- src/00_hello.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/00_hello.py b/src/00_hello.py index 268998dfc7..a09979c682 100644 --- a/src/00_hello.py +++ b/src/00_hello.py @@ -1 +1,8 @@ -# Print "Hello, world!" to your terminal \ No newline at end of file +# Print "Hello, world!" to your terminal + +# more ways to a statement in python +a="world" +print(f"hello {a}") #first way +print("hello",a) #second way +print("hello "+format(a)) # Third way +print("hello world") #normal way