Question
Answered step-by-step

I'm not sure if I'm writing this code correctly. The output is...

I'm not sure if I'm writing this code correctly. The output is right but its not spaced out. Please give the write code or explain how to fix this.

Image transcription text

< > learn.zybooks.com Homepage - Southern New Hampshire University 1.21. LAB: Divide by x 1.23.1: LAB: Warm up: Variables, input, and type conversion - Google Search =zyBooks My library > IT 140: Introduction to Scripting v3 home > 1.21: LAB: Divide by x zyBooks catalog Help/FAQ Talha Shafiq LAB ACTIVITY 1.21.1: LAB: Divide by x 0 / 10 main.py Load default template... 1 user_num=int(input()) 2 x=int(input()) 3 for i in range(3): user_num//x print (user_num//x, end = "') user_num=user_num//x Develop mode Submit mode Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box. Enter program input (optional) 2000 2 Run program Input (from above) main.py (Your program) Output (shown below) Program output displayed here 1000500250

... Show more

Image transcription text

< > learn.zybooks.com Homepage - Southern New Hampshire University 1.21. LAB: Divide by x 1.23.1: LAB: Warm up: Variables, input, and type conversion - Google Search = zyBooks My library > IT 140: Introduction to Scripting v3 home > 1.21: LAB: Divide by x zyBooks catalog Help/FAQ Talha Shafiq 1.21 LAB: Divide by x 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). 247772.1677466 LAB ACTIVITY 1.21.1: LAB: Divide by x 0 / 10 main.py Load default template... 1 user_num=int(input()) VOUAWN x=int(input()) for i in range(3) : user_num/ /x print (user_num//x, end = "') user_num=user_num//x

... Show more

Answer & Explanation
Verified Solved by verified expert
Rated Helpful
<p>iscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor si</p> Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet

Unlock full access to Course Hero

Explore over 16 million step-by-step answers from our library

Subscribe to view answer

Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lore

Step-by-step explanation

ec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui l


Screen Shot 2020-11-02 at 12.48.03 PM.png

risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue v
1 Attachment
Screen Shot 2020-11-02 at 12.48.03 PM.png
png