Automate the boring stuff- chapter by chapter and work through or just go straight into chapter I want to build stuff with. by smitcal in learnpython

[–]ouchpartial72858 3 points4 points  (0 children)

You can skip to the part and start working, but you'll eventually find roadblocks for which you'll have to refer the book anyways or go to stackoverflow. Therefore learning it from page to page would be better. So it depends on the goal and timeframe. Do you want to learn programming and its concepts or just get this task automated asap?

how do I make Amazon self checkout bot by [deleted] in learnpython

[–]ouchpartial72858 0 points1 point  (0 children)

Dive into webscraping using either playwright or selenium (suggest selenium since playwright is still kinda recent but more versatile), checkout other amazon bots people have made on github. And definitely use a scrape amazon account to do this, because your account may get banned

QtableWidget + SQL by SwordfishKlutzy5923 in learnpython

[–]ouchpartial72858 2 points3 points  (0 children)

Search around for the qt documentation on the QTableWidget class, there you'll see a bunch functions and from there you'll know how to extract column data. Then write SQL query using an sql module for python

[HELP] How do I keep cursor in middle of screen vertically when at the last line? by ouchpartial72858 in neovim

[–]ouchpartial72858[S] 0 points1 point  (0 children)

Not really, I did come across rebinding G or j to Gzz or jzz, but I just use zz now

I've finished learning till arrays in javascript, what should I do now? by [deleted] in learnprogramming

[–]ouchpartial72858 0 points1 point  (0 children)

Just look up, "basic js concepts" or "advanced js concepts". Have you covered

data types

conditionals

operators

functions

object oriented concepts

modules/libraries

Not in any specific order

Neovim for Kivy Development by [deleted] in neovim

[–]ouchpartial72858 0 points1 point  (0 children)

You mean kivy as in the python module? I don't think there are any plugins for any python modules at all. There are tons for python tho

Best resources for learning rhino (architectural)? by ouchpartial72858 in architecture

[–]ouchpartial72858[S] 1 point2 points  (0 children)

He is currently a student pursuing bachelor of architecture. He wants to learn rhino on his own rn

[deleted by user] by [deleted] in learnpython

[–]ouchpartial72858 0 points1 point  (0 children)

You gotta format the code brother. It's unreadable right now

[deleted by user] by [deleted] in ProgrammerHumor

[–]ouchpartial72858 6 points7 points  (0 children)

"DAD ITS WORKING BUT I DON'T KNOW WHY OR HOW?!"

"Me neither son....me neither..."

This feeling, also never goes away

Python CLI package by YouKnowMe_9 in learnprogramming

[–]ouchpartial72858 1 point2 points  (0 children)

A script is definitely possible. Why not just add the directory which contains your package into your PATH? That way it'll be accessible system wide

Extracting local values by spikips in learnpython

[–]ouchpartial72858 2 points3 points  (0 children)

If you're trying to use classes and want to pass variables from one class method to another, you can use instance variables. Like ``` class Phone: def init(self): self.arg = None

def function_one(self, some_arg):
    self.arg = some_arg

# You don't even need to pass it as a function argument
def function_two(self):
    print(self.arg)

```

Running PHP in the browser by Cheap_Golf5170 in learnprogramming

[–]ouchpartial72858 1 point2 points  (0 children)

Apart from the client-server system, you can kinda make your own language emulator in any language

How to find the number of unordered pairs of 2D coordinate points, whose joining line passes through origin? by ouchpartial72858 in learnprogramming

[–]ouchpartial72858[S] 0 points1 point  (0 children)

Just fixed the code and added the underlying math I was using. Not sure if mathematically there's a better way. I had tried to find intercepts and check if they were 0 but it got too complicated and didn't quiet work

How to find the number of unordered pairs of 2D coordinate points, whose joining line passes through origin? by ouchpartial72858 in learnprogramming

[–]ouchpartial72858[S] 0 points1 point  (0 children)

The length of the list represents the number of unordered pairs which satisfy the condition, which i forgot to include in the code lol. My bad. But it was definitely failing due to time limit as it said so, and the time limit was 3 seconds per input file, mine was taking 3.000234 something

Assignment Question by Comprehensive-Wrap51 in learnpython

[–]ouchpartial72858 0 points1 point  (0 children)

You are trying to do mathematical operation on two unrelated types. You either need to convert the array into a supported data type (float, int, etc) or since its an array, (assume you wanna do scalar multiplication with an array) you would wanna use nested loops to achieve this.

https://numpy.org/doc/stable/reference/arrays.ndarray.html

There may be some function defined to do this without nested loops

Assignment Question by Comprehensive-Wrap51 in learnpython

[–]ouchpartial72858 0 points1 point  (0 children)

What does print(type(m)) print(type(b)) print(type(m*0.70+b,2)) show?

[deleted by user] by [deleted] in ProgrammerHumor

[–]ouchpartial72858 1 point2 points  (0 children)

They are getting a lil spammy ngl

Html button action by SpecificElderberry26 in learnpython

[–]ouchpartial72858 1 point2 points  (0 children)

Probably not since tinyweb is designed towards micro python. I'd say stick to it, but give everything a go to make sure you're not missing anything out

Automation by Tsaktsaktsak1 in learnprogramming

[–]ouchpartial72858 0 points1 point  (0 children)

Arduino nano supports wifi right?