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

>>> 

沒有留言:

張貼留言

Node-Red +SQLite <範例2>

 Node-Red +SQLite <範例2> 直接共用原本的 student.db 設定,不需建立新資料庫檔案。 [{"id":"in_gr_subject_v6","type":"ui_dro...