判斷型別
Python 內建指令 type() 可以判斷變數或常值的型別。
來判斷你在上一個練習中建立的變數之資料型別吧。
本練習屬於課程
Python 金融入門
練習說明
印出變數 company_1、year_1 和 revenue_1 各自的資料型別。
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Type of company_1
print(____(company_1))
# Type of year_1
____(____(year_1))
# Type of revenue_1
____