i was going through as per the steps and even after writting the code not sure why its not taking my input can you please look into it and let me know how can i proceed.
i was just going through the above statement and through this i thought of trying it and also i have checked the forum if anyoe have attended this before or not and thought of giving a try but the code is not going through.
This doesn’t say anything about what is inside of your brain. It is pretty obvious that you tried this code and read the forum. But can you say what thoughts were inside of your brain? Why did you write the code you did (and not “I thought it was right”)?
sorry for the delay but if you want me to explain in simple words as the steps suggested to create a for loop and add an append to univsited i did the same but its not taking my code so can someone from your end can help me in solving this problem.
You’ve explained the instructions, which isn’t necessary.
If you explain each line of code that you’ve written, one line at a time, then we can understand what it is we need to explain. You may even discover the solution yourself in this exercise.
Can you explain this line a bit more please? What does each part of this statement mean? “def” means to define a function, right? What about the other parts?
for means creating a for loop for the function where the output will get stop if i put a range in it lets say range(5) so in this the output will get executed 5 times consecutively including 0 as their first number as python reads from 0
dude i have created a function by name shorted_path with parameters as graph and start hope this is making sense and can we please focus on solving the problem instead of asking what each step is defining
We are trying to solve the problem. The problem is that you are asking for the solution without putting time into debugging. We are guiding you through the debugging.
We absolutely will not just give you the answer. Please work with us on the debugging so we can help you find the bug.
i understand your point in helping me understand the concept but i do know a little bit about python i have done it till dictionaries the only problem i am getting is even after putting the code its not accepting my code so for that i believe the answer would be the right solution instead of question what i was doing or telling me to narrate each line of code it just doesnt make much sense to me but if you feel that i can learn from this then please by all means go ahead.