From f4b19d5a345c04de37bc19754790826e2f69615e Mon Sep 17 00:00:00 2001 From: Prathima Kadari Date: Tue, 25 May 2021 13:41:37 +0530 Subject: [PATCH 1/4] Added string swap program --- Beginner_Level_Python_programs/string_swap.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Beginner_Level_Python_programs/string_swap.py diff --git a/Beginner_Level_Python_programs/string_swap.py b/Beginner_Level_Python_programs/string_swap.py new file mode 100644 index 0000000..9927331 --- /dev/null +++ b/Beginner_Level_Python_programs/string_swap.py @@ -0,0 +1,8 @@ +s=input() +s=list(s) +res="" +for i in range(0,len(s)-1,2): + temp=s[i+1] + s[i+1]=s[i] + s[i]=temp +print(res.join(s)) From 98eb39bd16b3d06fdbf518b14b65ad780e72dcd1 Mon Sep 17 00:00:00 2001 From: Rahul H Gupta <67586773+rahulhgdev@users.noreply.github.com> Date: Sat, 26 Jun 2021 17:39:43 +0530 Subject: [PATCH 2/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 40a4760..ae0c8a4 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ src:-https://dotnettutorials.net/lesson/tuples-in-python/ -## File Modes in Python🐍 +## File Mode in Python🐍 ![file2](https://user-images.githubusercontent.com/67586773/104689438-84028c80-5728-11eb-97cf-7cf8882c157c.png) From d84e48d26f96364fe9b175f418a909872f29b36a Mon Sep 17 00:00:00 2001 From: Rahul Gupta <67586773+rahulhgdev@users.noreply.github.com> Date: Mon, 21 Mar 2022 23:42:03 +0530 Subject: [PATCH 3/4] Update README.md --- README.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/README.md b/README.md index ae0c8a4..8582bb6 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,7 @@ src:-https://dotnettutorials.net/lesson/tuples-in-python/ -## File Mode in Python🐍 -![file2](https://user-images.githubusercontent.com/67586773/104689438-84028c80-5728-11eb-97cf-7cf8882c157c.png) - - -src:- http://net-informations.com/python/file/default.htm ## if-else flow chart From 2f8cb9a02f277326c01fd679197bedbab77fd0b7 Mon Sep 17 00:00:00 2001 From: Rahul Gupta <67586773+rahulhgdev@users.noreply.github.com> Date: Fri, 15 Apr 2022 23:58:46 +0530 Subject: [PATCH 4/4] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8582bb6..0c55822 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,5 @@ src:- https://www.educba.com/if-else-in-python/ ## for-loop flow chart ![forLoop](https://user-images.githubusercontent.com/67586773/105038972-ff946e80-5a85-11eb-8d3d-1e50a1eb4636.jpg) + +More updating soon..!