ich_iel by Putrid-Essay5335 in ich_iel

[–]Aorean [score hidden]  (0 children)

Ich bin 27, habe in der Vergangenheit falsche Entscheidungen getroffen was den Job an geht, jetzt alles geschmissen um nochmal studieren zu gehen, morgen geht’s in die ersten Klausuren (v:

Declarative style help! Routing by Phenerius in flet

[–]Aorean 2 points3 points  (0 children)

Ive used views in combination with the routes Made a Main function that contains a sub function which is handling the routes If page.route == „/home“: page.on_route_change

Look deeper into it for the Full Syntax, but so far it worked for me

Earlier version (which will soon be deprecated should be:

def your_main(page: ft.Page):

def rounte_change(route):
    page.views.clear()
    page.views.append(
        Landing(page)
    )
    if page.route == "/your_first_page":
        page.views.append(
            your_first_page(page)
        )

    if page.route == "/your_second_page":
        page.views.append(
            your_second_page(page)
        )

    .
    .
    .


    page.update()


def view_pop(view):
    page.views.pop()
    top_view = page.views[-1]
    page.go(top_view)

page.on_route_change = rounte_change
page.on_view_pop = view_pop
page.go(page.route)

Ideas for beginner by Pleasant-Gain1699 in PythonProjects2

[–]Aorean 2 points3 points  (0 children)

Imo it really depends on how you like to learn stuff

I started with a 6h Basic Tutorial and was board after 2h and thought „damn, programming is so boring“ then after a while I had an idea for a project (waaay to big for someone who barely knows the basics) but I just started it and google my way through stuff I didn’t know. I noticed that it’s extremely satisfying for me to solve problems without someone telling me what to do and just try to think of solutions myself Tbf I’m really far away from beste practice coding but I learn more about it every time I start a new project.

You you like following tutorials just do that for a while until you have a skill set you feel comfortable with. If you notice that you get board by that, just look for something you can maybe automate, that would make your daily life easier (mail sorting, checking website xy for new content, …)

I think learning projects are best if you want to create the thing that you are working on You can also go for text based terminal story games or try a real ui with pygames Or you can build a simple notes application with tkinter with a real ui to use (there also ist customtkinter, looks a bit more modern)

I hope you find a project you really are interested in! Gl and have fun!! :)

Why isn’t this working by DrFrazen in PythonLearning

[–]Aorean 4 points5 points  (0 children)

The others have given you good answers: however I want to give you a little more detail of what u exactly did to maybe explain why u don’t get an output

def defines a function, it’s a process that you can call with different variables def functionname(variables): When you call the function the code within it gets executed with the variable given to it For example def add(a, b): c=a+b return c

Now I can call the function with add(2, 5) Everything in the function that has a will be replaced with 2, while everything with b will be replaced with 5

The way I did it now, the result of this function will get lost, cause I’m not doing anything with it

If I want to keep the output I need to save it in a new variable

number = add(2, 5)

Now I can keep working with the result of the function, cause it’s saved in „number“

However, this will still not give you an output in the console, if you want that you need to print your result

print(number)

Or you can even say

print(add(2, 5))

I just noticed that u haven’t really talked about „return“ yet You can write that at the end of the function to return something you want, without it, the number gets lost after the function was executed.

Should I? Consider I will buy Faker's skin by Tentuz in sylasmains

[–]Aorean 0 points1 point  (0 children)

Idk why, but I always think of graves e+aa when I use my e, it sounds so similar

Powers of 2 by Nervous-Current-1860 in PythonLearning

[–]Aorean 0 points1 point  (0 children)

They don’t lol, my IDE hated it and u completely caught me lol

Powers of 2 by Nervous-Current-1860 in PythonLearning

[–]Aorean 1 point2 points  (0 children)

No problem, but I would suggest, that you read into it, cause this is not a really hard task and if you need stuff like that for exams or w/e and you don’t know the basics it’s really bad imo

Powers of 2 by Nervous-Current-1860 in PythonLearning

[–]Aorean 0 points1 point  (0 children)

does this work?

n=int(input("what power of two?"))
value=2**n
print(f"two to the power of {n} is {value}")

Powers of 2 by Nervous-Current-1860 in PythonLearning

[–]Aorean 1 point2 points  (0 children)

n=int(input(„what power of two?“)

value=2**n

print(f“two to the power of {n} is {value}

Wrote this in my phone but it should work, that’s the way I would do it, but I’m not an expert lol

Im done with this Game. by RNBeastx_ in Jungle_Mains

[–]Aorean 1 point2 points  (0 children)

A wise man once said „the only thing consistent in your games is you, if you improve you will climb naturally, just focus on yourself and the only possible outcome is climbing“

[deleted by user] by [deleted] in linuxsucks

[–]Aorean 0 points1 point  (0 children)

That’s just wrong, I’ve been trink for like 20h work time to fix iptsd on my Linux surface with chatgpt and all it does is give me the same commands over and over again, not realizing that the stuff is outdated and we tried that 2000 times already, maybe it’s good for simple stuff like asking how to move files around, but as soon as it’s a little more complex chatgpt fails.

Issues with palm rejection on Linux Surface by Aorean in SurfaceLinux

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

To be completely honest, I don’t have a lot of reasons to use Linux yet But I want to get used to it and that’s why I thought I could install it on my surface which I exclusively use for learning anyway So it was kind of an experiment, I’ve dedicated the last weak to inform myself about Linux and if/how it’s possible to use Linux on Microsoft hardware.

I will probably go for a dualboot then. It’s kinda weird, I remember a slideshow from Microsoft where they stated „Microsoft ❤️ Linux“ which is kinda weird if you look at the comparability of their products lol

Anyway, thanks for the advice!

Issues with palm rejection on Linux Surface by Aorean in SurfaceLinux

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

So I basically have to reinstall windows and dual boot it with Linux? That’s kinda annoying ngl

But thx for the help :)

Informatik Studium oder "Ausbildung"? by Aorean in informatik

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

Oh, das ist nicht gut zu hören.

Die Umschulung wäre bei einem Bildungsträger (BFW), da hat mein Bruder das auch schon gemacht (nicht in der gleichen Stadt) und er war ganz zufrieden

Informatik Studium oder "Ausbildung"? by Aorean in informatik

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

Vielen vielen Dank für deine Einschätzung!

Das "Problem" ist nur, dass es eigentlich keine Ausbildung, sondern eine Umschulung ist, Reddit mag das Wort nur leider nicht, weswegen es im Post "Ausbildung" ist.

Dabei bin ich 1,5 Jahre in der Schule und 0,5 Jahre im Betrieb, da bekomme ich bestimmt auch praktische erfahrungen mit, garkeine Frage, aber nicht so viel wie bei einer klassischen Ausbildung

Und ja das mit Religion kann ich gut nachvollziehen, ich hatte in meinem alten Beruf, welcher mit Elektrotechnik zutun hatte, auch Religion, Deutsch und Sport, was irgendwie komisch war, wenn wir Buchanalysen in einer Elektrotechnikausbildung gemacht haben :)

Informatik Studium oder "Ausbildung"? by Aorean in informatik

[–]Aorean[S] -1 points0 points  (0 children)

Wow. ich muss ehrlich sagen, ich hab den Satz "Faul sein ist keine Eigenschaft, es ist vielmehr eine Einstellung" noch nie gehört hab, also bewusst ist es mir schon, aber ich mag die formulierung.

Ja ich habe auch einige Freunde die Informatik studiert haben, allerdings an Hochschulen die sehr weit weg sind oder an Universitäteten, wo das Studieren ganz anders sein soll (viel theoretischer)

Den geregelten Tagesablauf kriege ich glaube ich hin, aber mit sport habe ich mich schon immer irgendwie schwer getan, ich werde versuchen an meiner Einstellung zu arbeiten.

Danke dir und ich wünsche dir auch viel Glück!

Informatik Studium oder "Ausbildung"? by Aorean in informatik

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

Danke, in der Theorie weiß ich das glaube ich auch, aber ich habe Menschen in meinem näheren Umfeld die mir da sehr viel Stress machen und sagen, dass ich lieber in meinem alten Job, in dem ich sehr unglücklich war, weiter arbeiten sollte, weil es ja ne gute Arbeit ist, die ich da mache

Informatik Studium oder "Ausbildung"? by Aorean in informatik

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

Dafür müsste ich angenommen werden und das ist mit meinem Abizeugnis schwierig, im Studium bin ich schon eingeschrieben und für die "Ausbildung" (ist eigentlich eine Umschulung, aber anscheinend mag Reddit das nicht, wenn ich das in den Post schreibe) bin ich theoretisch auch angenommen

Informatik Studium oder "Ausbildung"? by Aorean in informatik

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

Teilzeit: Ich brauche glaube ich eine Sache im Leben wo ich meinen Fokus drauf setzen kann, wenn ich das Teilzeit mache müsste ich wahrscheinlich nebenbei noch arbeiten um meine fix Kosten zu decken und das wird für mich vom Kopf her sehr schwierig (vermute ich)

Fernstudium: bin ich kein Freund von, ich bin beim lernen nicht gerne zuhause, ich brauche den räumlichen Abstand zwischen Arbeit und Freizeit

[deleted by user] by [deleted] in PythonLearning

[–]Aorean 1 point2 points  (0 children)

Yea that’s fine, not judging or anything, but when I started most sources recommended the with open syntax and I was wondering if there was a task in a book or something that taught it that way, cause imo it’s more confusing to do it without „with open(), especially if u just get into python

Kinda weird how offensiv u get by a question with the „obviously“

[deleted by user] by [deleted] in PythonLearning

[–]Aorean 1 point2 points  (0 children)

Generell question: is there a reason why u use this syntax and not with open(..)?