Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python:Objects and Sharing a) Describe how the following code works and state the mechanism it uses: n = None while n is None: try: s

python:Objects and Sharing

a) Describe how the following code works and state the mechanism it uses:

n = None while n is None: try: s = input("Enter an integer: ") n = int(s) except ValueError: print("%s is not an integer." % s)

b) In the above code, why is it better to use ValueError, rather than Exception? c) An approach to sharing code is publishing notebooks. Describe this approach and how it can help the research community

d) Another approach to sharing code is publishing packages. Describe this approach and how it impacts reproducibility

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

More Books

Students also viewed these Databases questions

Question

4. Did you rethink your decision?

Answered: 1 week ago

Question

3. Did you seek anyones advice?

Answered: 1 week ago

Question

7. What traps should she avoid?

Answered: 1 week ago