[Python] 파이썬에서 숫자 다루기
파이썬에서도 다른 프로그래밍 언어와 마찬가지로 +,-,/,* 을 이용해서 연산을 진행할 수 있다. 다음은 유데미 파이썬 과정에서 진행한 BMI 프로젝트이다. #PEMDASLR # () # ** # * / # + - #유데미 수업 내용 #BMI # 🚨 Don't change the code below 👇 height = input("enter your height in m: ") weight = input("enter your weight in kg: ") # 🚨 Don't change the code above 👆 #Write your code below this line 👇 BMI = float(weight) / float(height)**2 print(int(BMI)) #출력 결과 enter your..
Python
2022. 5. 9. 22:37