Skip to content

Commit 9604591

Browse files
authored
Create CodingBat solutions - Warmup-2
1 parent ebb7d21 commit 9604591

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

CodingBat solutions - Warmup-2

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Programmer : Dhruv Patel
2+
# Problem Name : CodingBat.com
3+
# Used In : Python
4+
# Used As : Warmup-2
5+
# Thoughts =>
6+
# Given a string and a non-negative int n, return a larger string that is n copies of the original string.
7+
#
8+
9+
'''
10+
Warmup-1 > sleep_in
11+
The parameter weekday is True if it is a weekday, and the parameter vacation is True if we are on vacation.
12+
We sleep in if it is not a weekday or we're on vacation. Return True if we sleep in.
13+
sleep_in(False, False) → True
14+
sleep_in(True, False) → False
15+
sleep_in(False, True) → True
16+
'''

0 commit comments

Comments
 (0)