Last answered:

04 Jan 2022

Posted on:

29 Dec 2021

0

Run codes for Question 2, but Question 1 shows first in Console

I followed your coding in Question1, 2, 3, and there was no problem running the first one. However, when I ran the codes for Question 2, it would show "Please enter the circle radius" in the Console, which is for the first question. Then I had to enter a number for the circle radius, got the result, then "Please enter the temperature in Fahrenheit" for Question 3 would pop. Was this because I didn't comment out the codes for Question 1? Please explain why I ran the codes for Question 2, codes for Question 1 had to show first. Same problem for Question 3. Thanks.

2 answers ( 0 marked as helpful)
Posted on:

30 Dec 2021

0

In Spyder, there is a button for running but it runs all codes excluding those being commented out. There is another button for running as well, and it is running only those codes that are highlighted.

Instructor
Posted on:

04 Jan 2022

0

Hey Christine,

Thank you for your question!

That is exactly right. You need to uncomment the exercise you are currently solving and keep the rest of the code commented.

Kind regards,
365 Hristina

Submit an answer