GoConqr has a new look! Let us know what you think.

Notes

Repaso Python

info team English 2 pages

Repaso Python

Content of the notes (2)

Page 1

The ABC company has hired you as an intern on the coding team that creates e-commerce applications. You must write a script that asks the user for a value. The value must be used as a whole number in a calculation, even if the user enters a decimal value. You need to write the code to meet the requirements. Which code segment should you use?

A. totalItems = input(“How many items would you like?”)

B. totalItems = float(input(“How many items would you like?”))

C. totalItems = str(input(“How many items would you like?”))

D. totalItems = int(input(“How many items would you like?”))

Repaso Python

Page 2

Information

Description
Note on Repaso Python, created by info team on 10/07/2020.
Created by
info team
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?