← Home ← Back to /g/

Thread 106319113

30 posts 6 images /g/
Anonymous No.106319113 >>106319121 >>106319135 >>106319162 >>106319179 >>106319196 >>106319231 >>106319317 >>106319334 >>106319918 >>106319934 >>106321042
I have 4 months to learn Python for a university exam, is that enough time to get a good foundation in the language?
Anonymous No.106319121 >>106319166 >>106319317 >>106321110
>>106319113 (OP)
yes, python is easy as shit
Anonymous No.106319135 >>106319166
>>106319113 (OP)
No saar python is very difficult almost as hard as javascript
Anonymous No.106319138 >>106319166 >>106319263
Yeah definitely
If you never wrote code before, start now though
Anonymous No.106319162 >>106319371
>>106319113 (OP)
Foundation, a week is enough. Maybe a couple of you want to learn it at a slower pace. You can spend the rest of your time learning advanced mechanics and frameworks and all that extra fluff.
I recommend CS50 on jewtube. It's a proper CS beginner course, but if you just want to jump into Python they also have a Python focused course.
Anonymous No.106319166 >>106319220
>>106319121
>>106319135
>>106319138
I don't know who to trust
Anonymous No.106319179
>>106319113 (OP)
I learnt python in 2 weeks because of my new job as a Data Engineer. It is easy as shit, but as a side effect, you will forget about every other language because python syntax is different from everything else.
Anonymous No.106319196 >>106319205
>>106319113 (OP)
Yes, if you can't manage this then you are probably retarded.
Anonymous No.106319205 >>106319514
>>106319196
It is a very demanding exam, that's why I'm afraid
Anonymous No.106319220
>>106319166
It's easy if you know nothing though you are going to get btfo by gpt
Anonymous No.106319231
>>106319113 (OP)
Go tonthe nearest insane asylum, ask for the resident backend developer and bribe the autist with contraband lego
Anonymous No.106319263
If you've learned the basics of another programming language and the foundations of programming in general, learning Python will be easy. If you've never programmed at all, the language itself is still easy but understanding the why behind everything will take you a much longer time. As >>106319138 said, if you haven't coded, get learning. If you have, still do stuff but it won't be as bad.
Anonymous No.106319317 >>106319335
>>106319121
And stupid as fuck

>>106319113 (OP)
You'll do just fine, annon.
Anonymous No.106319334
>>106319113 (OP)
Depends on how much time in these four months will you alocate to learning of Python and if you know some other programming language already.

With no background
1 hr a day - 120 hours - more than enough
1 hr every other day - 60 hours good enough
2 hrs at the weekend - 32 hours, enough to pass the exam at B+
25 - 1 ECTS - just enough to pass the exam
Less than 25 hours - might not be enough.. But still might pass...
Anonymous No.106319335 >>106319429
>>106319317
>And stupid as fuck
nah python is great thats why its used in everything now especially AI
Anonymous No.106319371
>>106319162
>Mathfagging
>To learn how to code
AHAHHAHAHAHAHAHAHAHAHAHAHHAAHAHHAHAHAHaHAHAHAHAHAHAHAHAHHAAHHhAHHAHAHAHAHAHAHHAHHAHAHAHAHAHAAHAHAHAHAHAAHAHA
Anonymous No.106319429 >>106319485
>>106319335
I can't think of a serious programmer who reaches for Python as their first choice. It only seems to be webdevs who are forced to use it and no-coders from academia who reach for Python. Even then that Python code is, the majority of the time, just a wrapper around C/C++/Fortran code which is doing the heavy lifting.
Anonymous No.106319485 >>106320365
>>106319429
web dev is important though and its also used for automation and cybersecurity/hacking stuff, and AI as well

anybody learning to code needs to master Java and Python first if they wanna be employed, then focus on other languages for specific fields

>just a wrapper around C/C++/Fortran code which is doing the heavy lifting.
and?
Anonymous No.106319514 >>106319668
>>106319205
What is it about, faggot? You can't just say "Python" when it might actually be about machine learning which requires knowing much more than just Python itself.
Anonymous No.106319668 >>106319974 >>106320779 >>106321095
>>106319514

This basically:
Variables & Constants. Variable Types. Input/Output. print(), input(), special characters.
Control Structures: Decision and repetition (if, elif, else, for, while, range, break, continue, match).
Functions: Positional and named parameters.
Data Structures: Arrays, matrices, tuples, lists, queues, sets, dictionaries.
Modularity: Packages, modules.
Error Handling: Exceptions.
Applied Problem-Solving: Numerical methods.
Advanced Topics: Recursion, sorting algorithms.
Object-Oriented Programming (OOP) in Python: Classes, objects, inheritance, polymorphism. Python implementations.
Anonymous No.106319918
>>106319113 (OP)
are you programming in any language whatsoever on a regular basis? why don't you know your way around python already? why do you even study at uni
Anonymous No.106319934
>>106319113 (OP)
I don't want to live in a world where learning this garbage is a requirement for anything. Do not redeem.
Anonymous No.106319974
>>106319668
I learned R in College (Mathfag) but I didn't really have a true understanding of the language until I started actually figuring things out on my own in a job after college. Learning the basics of Python after that was much easier. You might want to skim a small textbook or read a quick guide on getting started with Python but otherwise the fastest way you'll learn it is by using it to work on personal projects. Don't watch Youtube videos, and use LLM's sparingly if you must as a tutor
Anonymous No.106320365 >>106320402
>>106319485
>webdev is more important than anything
Way to out yourself as a jeet
>just a wrapper around C/C++/Fortran code which is doing the heavy lifting.
Which means Python is unfit to do any real work. It needs another language to do it for it. If you are unable to write C/C++ then you cannot use Python and if you can write C/C++ why the fuck would you ever use Python? It's a scripting language for shitty coders to interface with stuff made by people who know their shit.
Anonymous No.106320402 >>106320761
>>106320365
somebody is unemployed
Anonymous No.106320761
>>106320402
>Ad-hominem
Anonymous No.106320779
>>106319668
Holy nigger that's like at most 1 month of study LMAO
Anonymous No.106321042
>>106319113 (OP)
just use Ai, nobody codes recreationally in 2025.
Anonymous No.106321095
>>106319668
During my apprenticeship in tech, I've met people who had a good grasp of all the topics you mentioned and could explain these concepts very well when asked (with dictionary accuracy) but when it came to real world problem solving, they were struggling to write functional code. It just isn't for everyone.
Anonymous No.106321110
>>106319121
Very easy, this is day 21 of Advent of Code 2024:
Ƶ = "029A 980A 179A 456A 379A".split()
from functools import cache
def ψ(α, ω, Ϫ):
m = Δ if α in Δ else Γ
δ = m[ω] - m[α]; r, i = int(δ.real), int(δ.imag)
Φ, θ = '^' * -i + 'v' * i, '<' * -r + '>' * r
if 0 == m[α] + r: return ϟ(Φ + θ + 'U', Ϫ)
if 0 == m[α] + i * 1j: return ϟ(θ + Φ + 'U', Ϫ)
return min(ϟ(θ + Φ + 'U', Ϫ), ϟ(Φ + θ + 'U', Ϫ))
@cache
def ϟ(σ, Ϫ):
if 0 == Ϫ: return len(σ)
return sum(ψ(σ[i - 1], o, Ϫ - 1) for i, o in enumerate(σ))
def Ʊ(Ϫ):
return sum(ϟ(σ, Ϫ) * int(σ[:-1]) for σ in Ƶ)
Γ = {'7': -3j, '8': 1 - 3j, '9': 2 - 3j, '4': -2j, '5': 1 - 2j, '6': 2 - 2j,
'1': -1j, '2': 1 - 1j, '3': 2 - 1j, '0': 1, 'A': 2}
Δ = {'^': 1, 'U': 2, '<': 1j, 'v': 1 + 1j, '>': 2 + 1j}
print(Ʊ(2 + 1), Ʊ(25 + 1))

https://godbolt.org/z/hje5r3zMM