Lucky number

input a integer number, detect if the number is considered lucky. If the number is lucky, print "lucky number". If not, print "regular number"

Definition of lucky number: the sum of the first three digits equals the sum of the last three digits in a number.

截圖 2021-05-05 下午8.00.28.jpg

 

文章標籤

Terror-P 發表在 痞客邦 留言(0) 人氣()

sort 是無序不重覆元素

截圖 2021-05-05 下午7.05.19.jpg

文章標籤

Terror-P 發表在 痞客邦 留言(0) 人氣()

截圖 2021-05-05 下午7.15.07.jpg


文章標籤

Terror-P 發表在 痞客邦 留言(0) 人氣()

截圖 2021-05-05 下午6.55.33.jpg

截圖 2021-05-05 下午8.10.30.jpg

文章標籤

Terror-P 發表在 痞客邦 留言(0) 人氣()

截圖 2021-05-05 下午6.21.37.jpg


文章標籤

Terror-P 發表在 痞客邦 留言(0) 人氣()

截圖 2021-05-05 上午1.22.57.jpg

 

文章標籤

Terror-P 發表在 痞客邦 留言(0) 人氣()

截圖 2021-05-05 上午12.42.24.jpg


文章標籤

Terror-P 發表在 痞客邦 留言(0) 人氣()

Please do temperature conversion. Given a Celsius temperature, please change it to Fahrenheit

F=9/5*C+32

C=5/9(F-32)

文章標籤

Terror-P 發表在 痞客邦 留言(0) 人氣()

Write a Python program which accepts the radius of a circle from the user and compute the area.

截圖 2021-05-03 下午9.50.48.jpg


文章標籤

Terror-P 發表在 痞客邦 留言(0) 人氣()

Given weight and height of a person, calculate BMI

 

BMI=w/(h*h)

文章標籤

Terror-P 發表在 痞客邦 留言(0) 人氣()