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

>>> 

沒有留言:

張貼留言

WOKWI LED + MQTT Node-Red SQLite

WOKWI LED + MQTT Node-Red SQLite const char *mqtt_broker = "broker.mqtt-dashboard.com" ; const char *topic1 = "alex9ufo/e...