Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please assist with getting rid of the whitespace in Python. I've been working on this for hours and am still stuck. Thank you, Write a

Please assist with getting rid of the whitespace in Python. I've been working on this for hours and am still stuck.

Thank you,

image text in transcribed

image text in transcribed

Write a program using integers user_num and x as input, and output user_num divided by x three times. Ex: If the input is: 2000 2 Then the output is: 1000 500 250 Note: In Python 3, integer division discards fractions. Ex: 6 // 4 is 1 (the 0.5 is discarded). 380522.2366982.qx3zqy7 LAB ACTIVITY 1.29.1: LAB: Divide by x 0 / 10 main.py Load default template... 1 user_num=int(input()) 2 x=int(input) 3 4 for i in range (3): 5 user_num=int(user_num/x) 6 print(user_num, end= "") 7 8 9 10 Latest submission - 12:02 AM CST on 01/16/22 Total score: 0 / 10 Only show failing tests Download this submission 1: Compare output ^ 0/4 Output is nearly correct; but whitespace differs. See highlights below. Special character legend Input 2000 2 Your output 1000 500 250 Expected output 1000 500 2504 2: Compare output 0/3 Output is nearly correct; but whitespace differs. See highlights below. Special character legend 100 Input 4 Your output 25 6 1 Expected output 25 6 14

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago