File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -226,3 +226,22 @@ def prog_4():
226
226
prog_4()
227
227
```
228
228
* * *
229
+
230
+ ## Question_9: ##
231
+ ** Description:**
232
+
233
+ Write a program which accepts a sequence of comma separated 4 digit binary numbers as its input and\
234
+ then check whether they are divisible by 5 or not. The numbers that are divisible by 5 are to be printed\ in a comma separated sequence.\\
235
+ Example:
236
+ 0100,0011,1010,1001\
237
+ Then the output should be:\
238
+ 1010\
239
+ Notes: Assume the data is input by console.\
240
+
241
+ ** Hints:**
242
+ In case of input data being supplied to the question, it should be assumed to be a console input.
243
+
244
+ ``` python
245
+ def prog_5 ():
246
+ ```
247
+ * * *
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ def prog_3():
179
179
180
180
181
181
182
- # ========================= Question_7 : ===========================================
182
+ # ========================= Question_8 : ===========================================
183
183
# Write a program that accepts a sequence of whitespace separated words as input and prints the words
184
184
# after removing all duplicate words and sorting them alphanumerically.
185
185
# Suppose the following input is supplied to the program:
You can’t perform that action at this time.
0 commit comments