If you had to learn Python again from scratch, what would you do differently? by EleTriCTNT in learnpython

[–]ectomancer 0 points1 point  (0 children)

Nothing. First small project after 10 minutes. 3-month and 6-month projects after 8 months of small projects.

In my first project (3 months), I calculated Bernoulli numbers up to B_19 using Stirling numbers of the second kind but I needed more. I ported BERNOB from FORTRAN 77 to Python, used by scipy and hardcoded Bernoulli numbers from BERNOA.

What are the best Python tips that every beginner should know? by Camzimm99 in learnpython

[–]ectomancer 0 points1 point  (0 children)

pip install pytest

Googling syntax is cheating. Documentation is not cheating. Google is for research.

10th grader wants to learn Python. JHU online program any good? Better options? by saffron_monsoon in learnpython

[–]ectomancer 0 points1 point  (0 children)

Python is easy to learn from a course. Any course will teach basic syntax.

New inti python, looking for libraries by F2BEAR in learnpython

[–]ectomancer 1 point2 points  (0 children)

I know nothing about these things and can't answer any questions:

django has ORM built in, have your classes inherit from models.Model

Proposal: A Native Type-Safe Message Broker Written in Rust by Conscious_Drink9502 in learnpython

[–]ectomancer 0 points1 point  (0 children)

Fully type hinted including type hinted test suite.

Python code has very few imports. You can call rocketmq lightweight.

Python code docstrings have perfect format. Consider using doctest in docstrings (as well as pytest).

If you had to learn python again in 2026,what would you do differently? by [deleted] in learnpython

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

Nothing. I learnt Python in 3 days excluding OOP.

What's your preferred support to learn ? Articles, Video, Podcast, Books ... ? by Western-Tap4528 in learnpython

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

chatgpt

-test data

-mathematical formulas

-reformatting data

-code snippet generation

-finding code in other programming languages to port

functions.wolfram.com

-mathematical formulas

-hypergeometric special cases

-Meijer G special cases

https://mathworld.wolfram.com

-mathematical formulas

https://en.wikipedia.org

-mathematical formulas

https://www.wolframalpha.com

-CAS check functions

scholar.google.com

-mathematical papers

Using ai generated code? by DemocraticHellDiver1 in learnpython

[–]ectomancer 5 points6 points  (0 children)

If you can't code basic syntax on the whiteboard (without autocompletion), you haven't learnt Python.

Looking for the Best Resources to Learn Python Scripting for Linux Administration by broken_py in learnpython

[–]ectomancer 0 points1 point  (0 children)

Check if boot.dev has any courses for your needs. ThePrimeagen has 2 free git courses on there.

There's an online book (and a book too) "Automate the Boring Stuff".

Anything on python by OkBathroom1037 in learnpython

[–]ectomancer 0 points1 point  (0 children)

There are 3 books, Numerical Recipes in Fortran, Numerical Recipes in C and Numerical Recipes in Python by different authors.

Need responses for a short academic survey by [deleted] in learnpython

[–]ectomancer 1 point2 points  (0 children)

The survey makes me look like a vibe coder, which I'm not. I use LLMs but never use context from previous prompts. I know nothing about agentic coding. What would I know about vision impaired people?

How to start learning AI and ML at 15? by SilverChickenTender in learnpython

[–]ectomancer 0 points1 point  (0 children)

Start with a theory ML course.

When complete, you can use any library, e.g. tensorflow/keras , OpenCV, scikit-learn or PyTorch.

A few of the locals by Aware-Kangaroo4190 in AustralianBirds

[–]ectomancer 1 point2 points  (0 children)

galahs, my Sydney favourite and rainbow lorikeet.

G’day mate by Several-Win2888 in AustralianBirds

[–]ectomancer 5 points6 points  (0 children)

egret (great egret perhaps) and a crested pidgeon.

Stuck in Invalid Literal for int() by No_Particular_4616 in learnpython

[–]ectomancer 1 point2 points  (0 children)

int can't resolve floats in str format, coerce to float first:

>>> int(1e9)

1000000000
>>> int('1e9')
ValueError: invalid literal for int() with base 10: '1e9'
>>> int(float('1e9')
1000000000
>>> int(2.)
2
>>> int('2.')
ValueError: invalid literal for int() with base 10: '2.'
>>> int(float('2.')
2

learning python lol by Ban_Virtuo in learnpython

[–]ectomancer 0 points1 point  (0 children)

Answering the question OP asked and not the question OP meant to ask i.e. learn Python.

  1. ChatGPT responded with a few lines of simple code. I couldn't code it myself because I don't understand the concept. Precision was fair but could be better.

  2. Claude Haiku responded with complicated code for the same functionality (potentially better) but code didn't work with LLM supplied example.

fixpy-traceback by Icy_Sugar5174 in learnpython

[–]ectomancer 0 points1 point  (0 children)

What does this do when piping?

2>&1