From 330e6c71c9a878e363b388381bf5fc5a33828868 Mon Sep 17 00:00:00 2001 From: Aryan Gupta <135496958+ag-1110@users.noreply.github.com> Date: Tue, 4 Jul 2023 18:35:02 +0530 Subject: [PATCH] Update Day 2.md added new solution in question Q9 using strings --- Status/Day 2.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Status/Day 2.md b/Status/Day 2.md index 37aaf66..215c7c9 100644 --- a/Status/Day 2.md +++ b/Status/Day 2.md @@ -452,6 +452,18 @@ def inputs(): print(*(line.upper() for line in inputs()),sep='\n') ``` +``` +'''Soltuion by: ARYAN GUPTA +''' +s= '''''' #using string +print(s.upper()) +while True: + x = input() + if len(x)==0: + break + s+=x +'\n' #adding new line +print(s.upper()) +``` --- [**_go to previous day_**](https://github.com/darkprinx/100-plus-Python-programming-exercises-extended/blob/master/Status/Day%201.md "Day 1")