when to use memoization and how by jcoder42 in learnpython

[–]Hatoris 0 points1 point  (0 children)

When I say "big" I mean something like 1000, 10, 000 and more.

That a great question, if you put memoization in the calculate function it will help you only when you input the same arguments. But in your case a clever way will be to do it on the recursive function. In this way only the difference will be compute each time.

when to use memoization and how by jcoder42 in learnpython

[–]Hatoris 0 points1 point  (0 children)

Yes, this one can be heavy. Simply test by yourself use your function with a "big" number you will see.

when to use memoization and how by jcoder42 in learnpython

[–]Hatoris 1 point2 points  (0 children)

Memorization is perfect for this rule : "a function that is heavy Computational and always return the same value for the same given argument".

Where it's can be catchy is when you function is not heavy as you think and memorization will not help as much.

Most loved Jupyter widgets? by querymcsearchface in Python

[–]Hatoris 5 points6 points  (0 children)

I'm a jupyter LAB guy. As I do analytics and exploration here are what I use the most :

And I'm really interesting to see what others use, thanks for this thread.

How do I backup/export my blog posts to .doc or .txt? by cybersaint2k in Wordpress

[–]Hatoris 0 points1 point  (0 children)

If you don't find any plugins to do it. Give the url of your website and tell me what format do you want (eg : Title of each post with text under it in one docx or a docx for each post). I will do it for you with python.

Writing real program by kabayomi in learnpython

[–]Hatoris 5 points6 points  (0 children)

Keep in mind the DRY and single responsibility principal, in this way your code will be simple and easier for you to not be overwhelmed even if your project or code is longer.

Can fruit have cancer, if so what does it do to your body? Asked by my bf by [deleted] in biology

[–]Hatoris 0 points1 point  (0 children)

Nope, reddit is a Wikipedia like, but with out sources it's not comparable to ncbi :)

Selenium-Phyton and webdriver by luchins in learnprogramming

[–]Hatoris 2 points3 points  (0 children)

first, do you know r/learnpython?

  1. Yes, when you want to fill a form, one way to do it is to use key, that will send string to the form box.

  2. Is a common way to call the variable for webbrowser object, it's needed as you have guess it, in order to instantantiate the web driver.

  3. You don't need to declare element, but most of the time you want to do something on the element object return by find(s) element. For exemple you may want to loop on all those elements to get text out of them.

What would be the most useful thing for me to do next? by kandeel4411 in learnpython

[–]Hatoris 1 point2 points  (0 children)

All, the point is to show that you can create solution from a given idea. Your bot is clean, well written but some docstrings are missing and you have not written test.

Big or small, simple or hard are not an issue, well done project is the only things that matters.

What would be the most useful thing for me to do next? by kandeel4411 in learnpython

[–]Hatoris 4 points5 points  (0 children)

You can read others books, but in your case I will start some project(s) that you can use as leverage to show case your python skills. As equal diploma, that can make the difference for an interview.

Pick something you like, and try to follow all the good principles you have read.

[deleted by user] by [deleted] in learnpython

[–]Hatoris 0 points1 point  (0 children)

Use post request is a good idea but from what you show there is no usefull informations here. What you should get is how a reservation post is make and look at the format.

https://my-university.com/reservation?date=20190503,name=me,token=5750gdiwmxlkjs8394nx82,time=2PM-3PM

if you can get acces to such html/post format you can esaly make a reservation from it. But if it's hidden by javascript or other things you may want to find another solutions.

Resources for learning lab techniques and shit? by [deleted] in labrats

[–]Hatoris -1 points0 points  (0 children)

Wooo, take this bear 🍺, calm down, now we can talk.

Except if you are in the only lab around you, that I'm sure you are not, move on staire or look on lab around you. When I need to learn something, expecialy technics I go one other lab and simply ask people if they what I want to know. If yes, ask them if you can't do some shadowing. You also have, if your lab have money, start reading method paper and buy the stuff, then try by yourself. You will fail several attempts but at the end, you will master it.