- Python Projects for Kids
- Jessica Ingrassellino
- 134字
- 2021-07-09 19:35:15
A quick task for you
Q1. What kind of data does the input()
function return?
- Elements
- Decimals
- Strings
- Integers
Q2. What does the int()
function do?
- Changes data to whole numbers
- Changes data to a string
- Does nothing
- Changes a function into a different function
Q3. How is the float()
function different from the int()
function?
- They are not different, they do the same thing
- The
float()
function deals with strings only - The
float()
function converts data into floating point numbers only float()
converts words into numbers
Q4. If you make a function called addition()
in your Python shell, how do you run that addition function to test it?
- Type addition in your Python shell
- Type def addition in your Python shell
- Type
addition()
in your Python shell - Type
addition()
in your Python shell
推薦閱讀
- Python量化投資指南:基礎(chǔ)、數(shù)據(jù)與實(shí)戰(zhàn)
- 垃圾回收的算法與實(shí)現(xiàn)
- C# Programming Cookbook
- C語(yǔ)言程序設(shè)計(jì)(第2版)
- Internet of Things with the Arduino Yún
- Integrating Facebook iOS SDK with Your Application
- Python+Office:輕松實(shí)現(xiàn)Python辦公自動(dòng)化
- Learning Image Processing with OpenCV
- Get Your Hands Dirty on Clean Architecture
- 安卓工程師教你玩轉(zhuǎn)Android
- SaaS攻略:入門(mén)、實(shí)戰(zhàn)與進(jìn)階
- Manage Your SAP Projects with SAP Activate
- Raspberry Pi開(kāi)發(fā)實(shí)戰(zhàn)
- 面向物聯(lián)網(wǎng)的Android應(yīng)用開(kāi)發(fā)與實(shí)踐
- 匯編語(yǔ)言程序設(shè)計(jì)教程