diff --git a/Challenge questions/Mohityadav2099/Challenge7.py b/Challenge questions/Mohityadav2099/Challenge7.py
new file mode 100644
index 0000000..b5c4f80
--- /dev/null
+++ b/Challenge questions/Mohityadav2099/Challenge7.py	
@@ -0,0 +1,17 @@
+s=str(input())
+r,c=list(map(int,s.split('X')))
+
+a='~'
+h='#'
+j=1
+
+for i in range(r//2):                   #top half of pattern
+    print((a*(j)).center(c,'h'))
+    j=j+2
+
+print(a*c)                              #middle row
+
+for i in range(r//2):                   #bottom half of pattern
+    j=j-2
+    print((a*(j)).center(c,'h'))
+