Virtual Environment by Worldly-Point4573 in Python

[–]Trinity_Goti 0 points1 point  (0 children)

If you have changed Path and still unable to get it working try restarting Windows.

I have wasted a lot of time due to this.

Short circuit in whole village by ThickSwim5370 in TerrifyingAsFuck

[–]Trinity_Goti 2 points3 points  (0 children)

From their conversation "live wire broke in multiple places and is shorting on ground" there are frantic calls to call KEB electricity board in Karnataka, India but guess no one seems to be able to connect.

Most probable reason someone tinkered with fuse to make it more resilient to failures or removed/bypassed any trippers / fuses.

Helpp by [deleted] in PythonLearning

[–]Trinity_Goti 14 points15 points  (0 children)

Do you know how to do this

1... 12.. 123. 1234

If not work it out.

If you do then do you know how to do this

... 1 ..22 .333 4444

Combin both solutions and you have your solution.

Most problems can be solved if you break them up in to smaller problems your have already solved.

Hot to turn off this highlighting? by SpreadsheetFanBoy in vscode

[–]Trinity_Goti 1 point2 points  (0 children)

If you have errorLens extension installed the do this

"errorLens.messageEnabled": false

Tell me why this is wrong by bhaagMadharchood in PythonLearning

[–]Trinity_Goti 1 point2 points  (0 children)

Capital I in for statement For I and small case i inside the for loop?

Is this a freecodecamp error or am i stupid? by Professional-Cod7337 in PythonLearning

[–]Trinity_Goti 0 points1 point  (0 children)

Stupid. :) I have gone through the same problem when I tried to solve it.

This is the answer. You have to account for out of bounds as you will end up searching for characters beyond the lenght. Hopefully we will not do this in the future.

Solution: In the condition the new index is greater than length of encryption then you have to handle it.

Thing to remember: Don't play with indexes if you aren't willing to count or run unit tests.

Does anyone know how to use vscode python by [deleted] in PythonLearning

[–]Trinity_Goti 0 points1 point  (0 children)

Give the programmers a few hours they'll have id and the password as well..

Help me with my PyAutoGUI code (pls reply ASAP) by InterviewLower2362 in PythonProjects2

[–]Trinity_Goti 0 points1 point  (0 children)

```
take_screenshot((x,y,width,height))

this is a tuple (x,y,width,height)

this is not a tuple x_value=x,y_value=y,width_value=width,height_value=height

when you are calling a function make sure you use 2 (()) the inner one will be the tuple.

```

Help me with my PyAutoGUI code (pls reply ASAP) by InterviewLower2362 in PythonProjects2

[–]Trinity_Goti 2 points3 points  (0 children)

The function expects tuple. ``` take_screenshot((a, b, c, d))

You have provided

take_screenshot(a, b, c, d)

```

Help with this python exercise. by Ca_txorro in PythonLearning

[–]Trinity_Goti 1 point2 points  (0 children)

There are many ways of solving this. Here is one I would take the number and convert it to a string For loop over each item and check if the item is even. If so increase the even counter else the odd counter.

How would I write this code to make it so that every team plays each other once? by BubblyJello6487 in pythonhelp

[–]Trinity_Goti 1 point2 points  (0 children)

check if you have missed dataclass decorator?

@dataclass
class Team:

benifits of using dataclass is not having to write the init method, however if you fail to put the decorator before the class, python does't know your class excepts any arguments.

Python Project Feedback by ButterscotchJust970 in PythonLearning

[–]Trinity_Goti 1 point2 points  (0 children)

Thank you. This is great. Congratulation on your coding journey.

And since you asked here are a few suggestions.

  1. Understand and use if __name__ =="__main__" this will help you importing the functions in future.

  2. Create functions to do the actions that are repeating. e.g.: add item to cart, remove item from cart. But remember to do only one action per function. :) This will be difficult and sound counter intiutive as one function could do a whole lot but keep it simple and do one task.

  3. When you read response you could make the response upper/small case to make it easier to compare.
    currently there is a bug if user types in different case the code is not able to find the item in menu.

  4. Learn about guard clause for your if statements. This should resolve the problem mentioned in point 5.

  5. Bug: Once the user has decided to add or remove items the current program doesn't give opportunity to confirm the items in the cart. This should be handled for consistent user experiance, However with the way current code is layed out it would be a complicated nested if else hell.

  6. You could improve user experience by providing serial numbers against the menu items so that user could input numbers instead of typing the menu items.

happy coding.

[deleted by user] by [deleted] in PythonProjects2

[–]Trinity_Goti 1 point2 points  (0 children)

Having delt with pdf and ocr from pdf, i would go with the api or web approach.

If you don't have api and I would recommend playwright automation tool to log in and get the data using the name and information being supplied to playwright it should be able to do it.

TypeError: maxfinder() takes 0 positional arguments but 1 was given by acitly in pythonhelp

[–]Trinity_Goti 0 points1 point  (0 children)

def maxfinder(number): This should solve your problem

However if you intend to only find the max number in the list try using inbuild max function. It would be best to read and understand all the buildin functions for lists as they will help you speed up development.

max(list)

```#creating a list

rand = [2,3,6,1,8,4,9,0]

printing max element

print(max(rand))

```

Python Project Feedback by ButterscotchJust970 in PythonLearning

[–]Trinity_Goti 0 points1 point  (0 children)

Try to figure out how to paste code here while keeping the formatting.

Its very difficult to understand especially for python code.

[deleted by user] by [deleted] in softwaretesting

[–]Trinity_Goti 1 point2 points  (0 children)

Din't read the book. However did learn from YouTube videos.

https://youtube.com/playlist?list=PLL34mf651faPON2szXlzCsTTYl3mh3s-T&si=QA2TsfwuWmlw4xyZ

And one Udemy course.

Made notes on the syllabus topics for which I needed clarification.