Slow code running

SRI GOWRI MATTAM 20 Reputation points
2024-12-07T06:35:41.3033333+00:00

My code is not running it is taking a lot of time and I'm having trouble completing the exercise.

This question is related to the following Learning Module

Visual Studio Training
Visual Studio Training
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Training: Instruction to develop new skills.
25 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pradeep M 4,635 Reputation points Microsoft Vendor
    2024-12-09T04:22:56.0833333+00:00

    Hi SRI GOWRI MATTAM,

    Thank you for reaching out to Microsoft Q & A forum.  

    It seems the code is stuck because it’s waiting for you to enter input through the submit button. Here’s how you can proceed to complete this step: 

    1.Input Planet Names: 

    When the input box appears, type the name of a planet (e.g., Earth, Mars) and click the Submit button after each entry. 

    Once you’ve entered all the planet names, type done (not case-sensitive) and click Submit again to let the program know you’re finished. 

    2.Why the Code Seems Unresponsive: 

    The code is running a loop that waits for your input. If no input is provided, it will continue running indefinitely, showing the "running" status. 

    3.What to Do If You Skipped Input: 

    Click the Stop or Interrupt button in the toolbar to stop the code. 

    Then, rerun the cell and follow the steps above to enter the planet names and complete the process by typing done. 

    We’ve tested this process on our end, and it worked as expected. Please see the attached screenshot for guidance on how to input planet names and complete the exercise. 

    User's image

    Please feel free to contact us if you have any additional questions.    

    If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.                 

     

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.