- 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
推薦閱讀
- Advanced Machine Learning with Python
- Learn Blockchain Programming with JavaScript
- Moodle Administration Essentials
- Java Web及其框架技術(shù)
- Mastering Swift 2
- Java:High-Performance Apps with Java 9
- 計算機應(yīng)用基礎(chǔ)案例教程
- Visual Studio Code 權(quán)威指南
- Scratch·愛編程的藝術(shù)家
- Java程序設(shè)計與項目案例教程
- Java Web開發(fā)實例大全(基礎(chǔ)卷) (軟件工程師開發(fā)大系)
- 大學(xué)計算機基礎(chǔ)實訓(xùn)教程
- Mastering Magento Theme Design
- GO語言編程從入門到實踐
- Flask Web開發(fā)實戰(zhàn):入門、進階與原理解析