From 56fbf1b3d9120a1082a06b38742f916c219a7a16 Mon Sep 17 00:00:00 2001 From: Aritroo Kumar Chowdhury <91552411+aritroo@users.noreply.github.com> Date: Sun, 2 Oct 2022 09:18:35 +0530 Subject: [PATCH 1/4] Added my name and email in contributors file --- CONTRIBUTORS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 711f7839..ce9fc155 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -29,6 +29,7 @@ | Rahul Jangle | Ronny | E-Mail | | Anurag Vats | Anurag Vats | E-Mail | | Daksh Kesarwani | Daksh kesaarwani | E-Mail | +| Aritroo Chowdhury | Aritroo Chowdhury | E-Mail | From 88a3fb0582511f6b78863488fafabcf04dc69bbe Mon Sep 17 00:00:00 2001 From: Aritroo Kumar Chowdhury <91552411+aritroo@users.noreply.github.com> Date: Sun, 2 Oct 2022 09:23:42 +0530 Subject: [PATCH 2/4] Added Character pattern in Python --- character_pattern.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 character_pattern.py diff --git a/character_pattern.py b/character_pattern.py new file mode 100644 index 00000000..523a86ab --- /dev/null +++ b/character_pattern.py @@ -0,0 +1,32 @@ +# Python program to generate a character pattern + +# Github Username : aritroo + +#Example Output is given below :- +# Enter the number of rows : 5 +# A +# B B +# C C C +# D D D D +# E E E E E + + + +def character(n): + + num = 65 + + for i in range(0, n): + + for j in range(0, i+1): + + ch = chr(num) + + print(ch, end=" ") + + num = num + 1 + + print("\r") + +n = int(input("Enter the number of rows : ")) +character(n) From 3386274e80f8adcf028f924acd3b6f21a789af92 Mon Sep 17 00:00:00 2001 From: Aritroo Kumar Chowdhury <91552411+aritroo@users.noreply.github.com> Date: Sun, 2 Oct 2022 09:24:57 +0530 Subject: [PATCH 3/4] Delete character_pattern.py --- character_pattern.py | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 character_pattern.py diff --git a/character_pattern.py b/character_pattern.py deleted file mode 100644 index 523a86ab..00000000 --- a/character_pattern.py +++ /dev/null @@ -1,32 +0,0 @@ -# Python program to generate a character pattern - -# Github Username : aritroo - -#Example Output is given below :- -# Enter the number of rows : 5 -# A -# B B -# C C C -# D D D D -# E E E E E - - - -def character(n): - - num = 65 - - for i in range(0, n): - - for j in range(0, i+1): - - ch = chr(num) - - print(ch, end=" ") - - num = num + 1 - - print("\r") - -n = int(input("Enter the number of rows : ")) -character(n) From e9fb6e570d387a2f57531f994fd5efe2402ba7ce Mon Sep 17 00:00:00 2001 From: Aritroo Kumar Chowdhury <91552411+aritroo@users.noreply.github.com> Date: Sun, 2 Oct 2022 13:23:15 +0530 Subject: [PATCH 4/4] Added Character Pattern in python --- Python/character_pattern.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Python/character_pattern.py diff --git a/Python/character_pattern.py b/Python/character_pattern.py new file mode 100644 index 00000000..523a86ab --- /dev/null +++ b/Python/character_pattern.py @@ -0,0 +1,32 @@ +# Python program to generate a character pattern + +# Github Username : aritroo + +#Example Output is given below :- +# Enter the number of rows : 5 +# A +# B B +# C C C +# D D D D +# E E E E E + + + +def character(n): + + num = 65 + + for i in range(0, n): + + for j in range(0, i+1): + + ch = chr(num) + + print(ch, end=" ") + + num = num + 1 + + print("\r") + +n = int(input("Enter the number of rows : ")) +character(n)