Answers for "cos in python"

0

cls in python

import os
clear = lambda: os.system('cls')
Posted by: Guest on September-04-2020
-2

cos in python

from math import cos,pi
a = pi
b = cos(a)
c = 180
d = cos(c)
print(b,d) # returns -1,-0.59846
# cos function works with radians
Posted by: Guest on December-03-2020

Python Answers by Framework

Browse Popular Code Answers by Language