Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion three/three.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ def factorial():
return 6


def square_root():
return 1.7320508075689

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this ?



def is_prime():
return True


def is_three(x):
return x == three()

Expand Down Expand Up @@ -106,6 +114,10 @@ def letters():
return ['t', 'h', 'r', 'e', 'e']


def vowel_count():
reutrn 2


def spanish():
return 'tres'

Expand All @@ -122,6 +134,10 @@ def italian():
return 'tre'


def hindi():
return 'teen'


# Currency

def dollars():
Expand All @@ -136,6 +152,10 @@ def euros():
return '€3.00'


def rupees():
return '₹3.00'


# Rule of Threes

def rule_of():
Expand Down Expand Up @@ -225,4 +245,4 @@ def hours_from_now():
return (datetime.now() + timedelta(hours=3)).strftime('%H:%M:%S')

def days_from_now():
return (date.today() + timedelta(days=3)).strftime('%d %B %Y')
return (date.today() + timedelta(days=3)).strftime('%d %B %Y')