截圖 2021-05-10 上午2.42.17.jpg
Write a roll the dice program as following. User can input if roll again or not(y/n)

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

截圖 2021-05-08 下午8.17.28.jpg
Write a Python program that takes a text file as input and returns the number of words in words.txt
Write a Python program to count the number of lines in a text file.

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

截圖 2021-05-08 下午7.35.02.jpg
Create a Time class and initialize it with hours and minutes.

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

截圖 2021-05-08 下午7.31.08.jpg
Please define a Shape class as following and define Circle Class and Rectangle Class to inherit from Shape. In Circle and Rectange Class, please add function cal_area to calculate area and add function cal_perimeter to calculate perimeter.

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

截圖 2021-05-08 下午4.23.43.jpg
BLACKJACK: Given three integers between 1 and 11, if their sum is less than or equal to 21, return their sum. If their sum exceeds 21 and there's an eleven, reduce the total sum by 10. Finally, if the sum (even after adjustment) exceeds 21, return 'BUST'

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

截圖 2021-05-08 下午4.19.42.jpg
Given an array of distinct positive numbers, the task is to calculate the number of subsets (or subsequences) from the array such that each subset contains consecutive numbers
Take two lists and write a program that returns a list that contains only the elements that are common between these two lists (without duplicates). Make sure your program works on two lists of different sizes

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

截圖 2021-05-07 下午6.54.32.jpg
Ask the user for a string and print out whether this string is a palindrome or not. (A palindrome is a string that reads the same forwards and backwards.)

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

截圖 2021-05-07 下午6.54.06.jpg
Given two vector, calculate distance between them

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

截圖 2021-05-06 上午3.43.53.jpg
Given a test string, please switch this string to lower and calculate frequency of each character

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

截圖 2021-05-06 上午3.43.22.jpg
input a number greater than 1, detect if this number is prime number or not
if it is prime number, print "this is a prime number"

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

截圖 2021-05-06 上午2.33.58.jpg
write 9*9 multiplication table

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

截圖 2021-05-06 上午2.26.57.jpg
input a integer, calculate factorial of the number.
5! = 5*4*3*2*1
4! = 4*3*2*1

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

1 2
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。