What are the special constants in Python

1 Answer

0 votes
import math

print('π: %.4f' % math.pi)
print('e: %.4f' % math.e)


'''
run:

π: 3.1416
e: 2.7183

'''

 



answered Oct 16, 2017 by avibootz

Related questions

1 answer 287 views
1 answer 289 views
289 views asked Dec 16, 2016 by avibootz
1 answer 316 views
316 views asked Jun 5, 2016 by avibootz
1 answer 278 views
...