Skip to content

Commit e0bb6e4

Browse files
committed
solve 3 kata
1 parent fb30da9 commit e0bb6e4

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

[7 kyu]Caffeine Script

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def caffeineBuzz(n):
2+
pass

[7 kyu]Caffeine Script.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
def caffeineBuzz(n):
2+
print(n)
3+
if n%3 == 0 and n % 4 == 0:
4+
return 'CoffeeScript'
5+
elif n%3 == 0:
6+
return 'JavaScript' if n % 2 == 0 else 'Java'
7+
else:
8+
return 'mocha_missing!'

[7 kyu]Counting power sets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def powers(lst):
2+
return 2**(len(lst))

[7 kyu]Descending Order.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def Descending_Order(num):
2+
return int(''.join(sorted([c for c in str(num)],reverse = True)))
3+
4+
print(Descending_Order(96588989161))
5+

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy