Engineering & Technology
มหาวิทยาลัย
Python
這樣為什麼錯?
輸入兩不同之整數 ,輸出 其大小比較 ,
例如:輸入57,輸出5<7,輸出時不
要改變輸入值之順序,不必考慮兩整數
相同之情形。<或 > 前後皆有一隔空格
For example:
Input | Result
彈 3<7
同
加 斧寢 天
~-2
Answer: (penalty regime: 10, 20, ...
%)
1 |a=num1
2 「b=num2
3yifa>b:
4|(a>b)
5yleUse
6 prlint (a <b)
Input Expected Got
3 3 <7 MKEWrOrdeeke
7 Traceback (most recent calt last):。
Fite tester一python3e, tine 1, in <module>e
3numlo
NameError: name “num1' is not defined
ing was aborted due to error.
rcode must pass all tests to earn any marks. Try again.
1IDE DIFFERENCES
คำตอบ
ยังไม่มีคำตอบ
ข้อสงสัยของคุณเคลียร์แล้วหรือยัง?
เมื่อดูคำถามนี้แล้ว
ก็จะเจอคำถามเหล่านี้ด้วย😉