2018年1月9日 星期二

Python: Print "30+20=50"

Python: Print "30+20=50"

Python Basic: Exercise-88 with Solution

Given variables x=30 and y=20, write a Python program to print "30+20=50".
Sample Solution:-
x = 30
y = 20
print("\n%d+%d=%d" % (x, y, x+y))
print()

============= RESTART: F:/Python_APSC/py-ex-basic-88.py ===========

30+20=50

>>> 

沒有留言:

張貼留言

OPEN DATA AQI 空氣品質監測網 + NODE-RED

OPEN DATA AQI 空氣品質監測網 + NODE-RED  首頁 - 空氣品質監測網  https://airtw.moenv.gov.tw/ https://data.gov.tw/datasets/search?p=1&size=10&s=_score...