You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Unofficial answers to Python Coding Bat problems*
2
+
*Unofficial answers to Python Coding Bat solutions for `String-1`,`Logic-1` and `Warmup-1`problems*
3
3
4
4
The problems can be found here: http://codingbat.com/python
5
5
@@ -8,9 +8,38 @@ I made these solutions while studying for my grade 9 computer science test. The
8
8
9
9
I have both my solutions for the test, and they can be found in the `test` folder.
10
10
11
+
*Please note this project will no longer be updated with more content, only bug fixes will occur*
12
+
13
+
## Setup Instructions
14
+
15
+
It is very easy to get these things up and running on your machine. Most people will not even want to run these, but instead see the solutions to them.
16
+
17
+
### Viewing Solutions
18
+
19
+
Well, that's easy, just open the folder that is the problem set name. Then click the solution you want to use.
20
+
21
+
__Note:__*If you are using Coding Bat's online interface, please follow the instructions below.*
22
+
23
+
Suppose, the following is shown below, only take the function, so everything from line 1-5 should be put in the online interface.
24
+
25
+
```
26
+
def monkey_trouble(a_smile, b_smile):
27
+
if(a_smile == "yes" and b_smile == "yes" or a_smile == "no" and b_smile == "no"):
28
+
return True
29
+
else:
30
+
return False
31
+
32
+
a_smile = raw_input("Is a smiling? (yes or no) ")
33
+
b_smile = raw_input("Is b smiling? (yes or no) ")
34
+
35
+
print(monkey_trouble(a_smile,b_smile))
36
+
```
37
+
38
+
### Downloading the Repository
39
+
40
+
Press the green, `Clone or download` button on the top of the repository. Then click `Download ZIP`.
41
+
11
42
## Improvements
12
43
__Note:__*All of these solutions have been tested using Coding Bat's online interface*
13
44
14
-
Hopefuly soon, I will be expaning these solutions for all of the Python questions.
15
-
16
45
If you find a better solution, please fork the repository and submit a pull request or let me know via email at [info@michaelbateman.ca](mailto:info@michaelbateman.ca). Please note - I will not be changing anything in the `test` folder, only the other files, if a better solution can be found.
0 commit comments