python/기본

변수, 수치, print 출력

wefree 2022. 4. 24. 21:38
one = 1
two = 'two'

book_float = 15.80
print(type(book_float))  # <class 'float'>

true_bool = True
false_bool = False

r = 7 / 4  # 1.75
q = 7 // 4  # 1

print('a', 'b', sep=',')  # a,b
print(2 ** 10)  # 2^10=1024

# math 도움말 보기
import math

print(help(math))