|
16 | 16 | ``` |
17 | 17 |
|
18 | 18 | ### Hints: |
19 | | ->*** In case of input data being supplied to the question, it should be assumed to be a console input.tuple() method can convert list to tuple*** |
| 19 | +>***In case of input data being supplied to the question, it should be assumed to be a console input.tuple() method can convert list to tuple*** |
20 | 20 |
|
21 | 21 | ----------------------- |
22 | 22 |
|
@@ -47,8 +47,8 @@ print(tpl) |
47 | 47 | ### **Question:** |
48 | 48 |
|
49 | 49 | >***Define a class which has at least two methods:*** |
50 | | ->* ***getString: to get a string from console input*** |
51 | | ->* ***printString: to print the string in upper case.*** |
| 50 | +>* ***getString: to get a string from console input*** |
| 51 | +>* ***printString: to print the string in upper case.*** |
52 | 52 |
|
53 | 53 | >***Also please include simple test function to test the class methods.*** |
54 | 54 |
|
@@ -193,9 +193,9 @@ print(",".join(D)) |
193 | 193 |
|
194 | 194 | >***Write a program which takes 2 digits, X,Y as input and generates a 2-dimensional array. The element value in the i-th row and j-th column of the array should be i * j.*** |
195 | 195 |
|
196 | | ->*** Note: i=0,1.., X-1; j=0,1,¡Y-1. Suppose the following inputs are given to the program: 3,5*** |
| 196 | +>***Note: i=0,1.., X-1; j=0,1,¡Y-1. Suppose the following inputs are given to the program: 3,5*** |
197 | 197 |
|
198 | | ->*** Then, the output of the program should be:*** |
| 198 | +>***Then, the output of the program should be:*** |
199 | 199 | ``` |
200 | 200 | [[0, 0, 0, 0, 0], [0, 1, 2, 3, 4], [0, 2, 4, 6, 8]] |
201 | 201 | ``` |
@@ -294,7 +294,7 @@ PRACTICE MAKES PERFECT |
294 | 294 |
|
295 | 295 | ---------------------- |
296 | 296 | ### Hints: |
297 | | ->*** In case of input data being supplied to the question, it should be assumed to be a console input.*** |
| 297 | +>***In case of input data being supplied to the question, it should be assumed to be a console input.*** |
298 | 298 |
|
299 | 299 | ------------------- |
300 | 300 | **Main author's Solution: Python 2** |
|
0 commit comments