Skip to content
Open
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions Find angle MBC.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Enter your code here. Read input from STDIN. Print output to STDOUT
import math
a=int(input())
b=int(input())
c=a/b
d=math.atan(c)
print(str(int(round(math.degrees(d))))+'°')
3 changes: 3 additions & 0 deletions Text wrap.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
def wrap(string, max_width):
return textwrap.fill(string,max_width)

17 changes: 17 additions & 0 deletions map and lambda function.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
cube = lambda x: x*x*x

def fibonacci(n):
# return a list of fibonacci numbers
li=[]
if n>2:
li.append(0)
li.append(1)
for i in range(n-2):
li.append(li[i]+li[i+1])
return li
elif n==2:
return [0,1]
elif n==1:
return [0]
else:
return []
2 changes: 2 additions & 0 deletions triangle Quest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
for i in range(1,int(input())):
print([0,1,22,333,4444,55555,666666,7777777,88888888,999999999][i])