Posts

Showing posts from August, 2021

Return variable vs print variable

def greet_user(name):     greet= "Hi " + name     return greet print(greet_user("Prashant")) Conclusion: When you use return statement inside a function, you need to use print to get an output def greet_user(name):     greet= "Hi " + name     print greet greet_user("Prashant") Both methods return the same output! Conclusion: When you don't use return inside a function, you don't need to use print

My experience with bug fixes

Image
 Sometimes, there is no bug as such but we fail to check different ways in which we can test it. Here are some ways to try before logging abug. 1) Try with a "/ at the end" So once this happened that i had to check V1 and V2 end-points in postman to expire licenses. V1 end point was working fine but V2 end-point was showing the following error. So, I logged the bug for it and guess what, it was marked as invalid. Why? Because there was a "/" missing at the end. As soon as I added that response was 202 accepted. (Note:-But sometimes it was also coming 404 Not found.) I should have tried this as well. Now the problem is The operation status is coming "In progress" and does not change to success or failed. Had a discussion regarding this issue and came to know it may e a branch issue. Update: Logged bug and assigned to developer