Unladen Swallow
Aug-30-2020, 05:10 AM (This post was last modified: Aug-30-2020, 05:11 AM by .)
Aug-30-2020, 05:38 AM
Unladen Swallow
Aug-30-2020, 05:51 AM
Aug-30-2020, 06:09 AM (This post was last modified: Aug-30-2020, 06:10 AM by .) File "paillasse/tmp/badinput.py", line 7 largest = i ^ IndentationError: expected an indented blockIt tells me that line 7 has a bad indentation. You need to add more space at the beginning of the line. It must not be aligned with the 'if' of the previous line.
Unladen Swallow
Sep-02-2020, 08:06 AM
Sep-02-2020, 11:35 AM
Sep-02-2020, 12:59 PM (This post was last modified: Sep-02-2020, 01:00 PM by .) SteppentigerV2 Wrote: I was using that py4e.com playgoundDos in not print the whole ?
I guess is dos,if it do not then is useless. SteppentigerV2 Wrote: Does visual studio do it?All editor should give show that Traceback output,and very few in the Python world use Visual Studio.
A lot use which is not the same as Visual Studio.
Is VS Code if a Linter if turned on give a Warning before running the code.
Here a example how this look,the linter i use here is .
Unladen Swallow
Oct-21-2020, 06:33 PM
Da Bishop
Oct-21-2020, 08:07 PM
Unladen Swallow
Oct-22-2020, 04:54 AM |
|
| | | | |
| | | | 174,757 | Jul-25-2023, 04:15 PM : |
| | | | 46,016 | Jan-23-2021, 06:27 AM : |
| | | | 12,225 | Jul-15-2020, 04:54 PM : |
| | | | 5,174 | Jun-06-2020, 08:59 AM : |
| | | | 6,339 | May-02-2020, 01:34 AM : |
| | | | 32,012 | Apr-08-2020, 06:49 AM : |
| | | | 8,669 | Dec-23-2019, 08:41 PM : |
| | | | 8,670 | Oct-22-2019, 08:08 AM : |
| | | | 16,109 | Jan-17-2019, 07:34 AM : |
| | | | 3,343 | Feb-08-2018, 05:18 AM : |
User Panel Messages
Announcements.
![assignment 5 2 python for everybody assignment 5 2 python for everybody](https://python-forum.io/images/healt_python38.png)
Login to Python Forum
- Stack Overflow Public questions & answers
- Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers
- Talent Build your employer brand
- Advertising Reach developers & technologists worldwide
- Labs The future of collective knowledge sharing
- About the company
Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Get early access and see previews of new features.
Not sure what is wrong with this code for Python for Everybody 5.2
I'm taking Coursera and doing a python course. I'm struggling with the last assignment.
Here is the assignment: 5.2 Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entered, print out the largest and smallest of the numbers. If the user enters anything other than a valid number catch it with a try/except and put out an appropriate message and ignore the number. Enter 7, 2, bob, 10, and 4 and match the output below.
Please help. Thanks
![assignment 5 2 python for everybody Neil's user avatar](https://www.gravatar.com/avatar/4e3689443e724512613b3721726493d0?s=64&d=identicon&r=PG&f=y&so-version=2)
- What is your question? Right now all you've said is that you wrote some code. What precisely is it that doesn't work about your code which you need help with? – Max von Hippel Commented Jul 18, 2018 at 4:50
- 1 If the problem is, that it stops running after entering one number: Your indentation is wrong, everything after while True: and before largest = max(store) needs to be indented, but I guess that could be from pasting it into Stackoverflow as well. – Bernhard Commented Jul 18, 2018 at 4:53
- The output of the assignment is supposed to be Invalid input Maximum is 10 Minimum is 2 I get the same output but it still says that it's wrong. It says "Maximum is 10 ← Mismatch" – Neil Commented Jul 18, 2018 at 4:54
- make sure to give 4 space indentation it is probably the indentation mistake – Syed Khizaruddin Commented Jul 18, 2018 at 5:36
![assignment 5 2 python for everybody Arashsyh's user avatar](https://i.sstatic.net/WauKp.jpg?s=64)
![](//alexandria-library.space/777/templates/cheerup2/res/banner1.gif)
Your Answer
Reminder: Answers generated by artificial intelligence tools are not allowed on Stack Overflow. Learn more
Sign up or log in
Post as a guest.
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy .
Not the answer you're looking for? Browse other questions tagged python or ask your own question .
- Featured on Meta
- Upcoming sign-up experiments related to tags
- The return of Staging Ground to Stack Overflow
- Policy: Generative AI (e.g., ChatGPT) is banned
Hot Network Questions
- Is there a name for books in which the narrator isn't the protagonist but someone who know them well?
- Passkeys: MFA or not?
- Why is "Colourless green ideas sleep furiously" considered meaningless?
- What was the first modern chess piece?
- What was Jessica and the Bene Gesserit's game plan if Paul failed the test?
- Why don't they put more spare gyroscopes in expensive space telescopes?
- Why does 2N2222 allow battery current flow when separate 5V circuit unpowered, but 2N3904 doesn't?
- e{ } and e( ) Notation
- Rule of Thumb meaning in statistics
- Why does the declension of "duo" (two) look like the first/second declension in nominative, genitive and accusative, but like the third otherwise?
- Meaning of "virō" in description of Lavinia
- UTF-8 characters in POSIX shell script *comments* - anything against it?
- Using only ceramic capacitors on an input of an SMPS - unclear advice from manufacturer
- What happens if you don't appear for jury duty for legitimate reasons in the state of California?
- Why do trombones often play differently?
- What aspects define how present the garlic taste in an aglio e olio pasta becomes?
- What is this flying boat I just saw fly over?
- Am I wasting my time self-studying program pre-requisites?
- Create 3D Cylinder in ArcGIS Pro
- What will happen if we keep bringing two protons closer and closer to each other, starting from a large distance?
- Finding the real roots of an octic polynomial (degree eight).
- Finding a mystery number from a sum and product, with a twist
- Find 10 float64s that give the least accurate sum
- Issue with building a version of Blender 4.1.1 (GooEngine)
![assignment 5 2 python for everybody](https://stackoverflow.com/posts/51393765/ivc/933a?prg=6c26a161-9012-42dd-8d53-15510c7608a1)
Get the Reddit app
Subreddit for posting questions and asking for general advice about your python code.
An issue with Assignment 5.2 [Coursera Programming for Everybody]
Even if my code matches desired output, it shows the code is incorrect. I spent all day trying to fix the issue but failed. Could anyone please help me fix the issue?
Screenshot: https://prnt.sc/1fs2vr8
![assignment 5 2 python for everybody assignment 5 2 python for everybody](https://www.quizerry.com/wp-content/uploads/2020/10/20201021_070003.png?ezimgfmt=ng%3Awebp%2Fngcb74%2Frs%3Adevice%2Frscb74-1)
Assignment 2.2 | Week-4 | Programming for Everybody (Getting Started with Python) By Coursera
Coursera programming for everybody (getting started with python) week 4 assignment 2.2 .
Question: 2.2 Write a program that uses input to prompt a user for their name and then welcomes them. Note that input will pop up a dialog box. Enter Sarah in the pop-up box when you are prompted so your output will match the desired output.
Do Not Only Use These Quizzes For Getting Certificates.You Can Take Help From These Quizzes Answer. All Quizzes & Contents Are Free Of Charge. ✅ If You Want Any Quiz Answers Then Please Contact Us
Related Questions & Answers:
Leave a comment cancel reply.
Save my name, email, and website in this browser for the next time I comment.
Please Enable JavaScript in your Browser to Visit this Site.
![](//alexandria-library.space/777/templates/cheerup2/res/banner1.gif)
IMAGES
VIDEO
COMMENTS
Fork 5 5. [Coursera] Python for everybody 5.2 Assignment. Raw. 5.2 Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entered, print out the largest and smallest of the numbers. If the user enters anything other than a valid number catch it with a try,except and put out an appropriate ...
CourseraProgramming for Everybody (Getting Started with Python)Week 5 Assignment 5.2 Question: 5.2 Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entered, print out the largest and smallest of the numbers. If the user enters anything other than a valid number catch it…
Hi guys, in this video I solved the assignment 5.2 of Coursera Python for Everybody. Hope you find it useful.If you're new, Subscribe! https://www.youtube....
I have been taking Coursera's course, Programming for Everybody with Python. But one of the assignment 5.2 on week 7 got my attention. The objective is to make the user enter some numbers and enter done, when he entered all the numbers he wanted. After that, the output should be the biggest number and smallest number he entered. Here is the ...
wk5 - assignment 5.2.py. Cannot retrieve latest commit at this time. 5.2 Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entered, print out the largest and smallest of the numbers. If the user enters anything other than a valid number catch it with a try/except and put out an ...
this contains all the answers to the quizes and asssignments for "Programming for Everybody (Getting Started with Python)" on Coursera by the University of Michigan. - Coursera---Programming-for-Everybody-Getting-Started-with-Python-/Week 7- Assignment 5.2 at master · Ritik2703/Coursera---Programming-for-Everybody-Getting-Started-with-Python-
Current repository contains all assignments, notes, quizzes and course materials from the "Python for Everybody Specialization" provided by Coursera and University of Michigan. Topics. html json sqlite python3 beautifulsoup urllib Resources. Readme Activity. Stars. 143 stars Watchers. 11 watching Forks. 80 forks
Coursera: Programming For Everybody Assignment 5.2 program solution Answer | Python for Everybody Assignment 5.2 program solution.IF YOUR PROGRAM IS WORKING...
The video is about the solution of the mentioned assignment of the python course named 'PYTHON FOR EVERYBODY' on coursera by Dr. Chuck
Help with the assignment 5.2 in Python for everybody. Community Support (Archived) — Edward Lundqvist asked a question. March 8, 2021 at 6:45 AM. Help with the assignment 5.2 in Python for everybody. I need help with the assignment 5.2 in Python for everybody. Somebody that could help me?
Joined: Oct 2017. Reputation: 1. #1. Oct-07-2017, 03:58 PM. Hey guys- I'm on my last assignment for Python and I need some expert assistance please. This is the assignment: 5.2 Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entered, print out the largest and smallest of the numbers.
Hi there, I'm doing the last assignment for the Programming for Everybody (Getting Started with Python) course on Coursera, and I'm not quite understanding the solution. The assignment is 5.2 Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entered, print out the largest and ...
Last active 2 years ago. [Coursera] Python for everybody 5.2 Assignment. Raw. 5.2 Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entered, print out the largest and smallest of the numbers. If the user enters anything other than a valid number catch it with a try,except and put out ...
Activity: 5.2.3 The len function tells us how many items are in its argument. (functBuiltin_len) These functions can operate on any set of values, as we will see in later chapters. You should treat the names of built-in functions as reserved words (i.e., avoid using "max" as a variable name). 1. city_name = "Detroit".
Python 100.0%. Assignment solutions for python for everybody. Contribute to sweehors/python-for-everybody development by creating an account on GitHub.
If the file ends with _p2, this means that the file runs on Python 2. If the file ends with _p3, this means that the file runs on Python 3. I tried to create two versions. However, you can easily modify the syntax accordingly. Mostly it's due to the print syntax.
5.2 Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entered, print out the largest and smallest of the numbers. If the user enters anything other than a valid number catch it with a try/except and put out an appropriate message and ignore the number.
I'm taking Coursera and doing a python course. I'm struggling with the last assignment. Here is the assignment: 5.2 Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entered, print out the largest and smallest of the numbers.
Subreddit for posting questions and asking for general advice about your python code. Members Online • akalama. ADMIN MOD An issue with Assignment 5.2 [Coursera Programming for Everybody] Even if my code matches desired output, it shows the code is incorrect. I spent all day trying to fix the issue but failed. ... This sub is for discussing ...
CourseraProgramming for Everybody (Getting Started with Python)Week 4 Assignment 2.2 Question: 2.2 Write a program that uses input to prompt a user for their name and then welcomes them. Note that input will pop up a dialog box. Enter Sarah in the pop-up box when you are prompted so your output will match the desired output. Input: # The code below…