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 ESP32-IDF DHT22 + MQTT 

 WOKWI ESP32-IDF DHT22 + MQTT WOKWI ESP32-IDF 程式 #include < stdio.h > #include < string.h > #include " freertos/FreeRTOS...