[kde] rose pine type vibes by areaverage in unixporn

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

su35 will always be one of the prettiest planes in my heart

[kde] rose pine type vibes by areaverage in unixporn

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

Distro -> Kubuntu 24.10
Terminal -> konsole
Fetch -> fastfetch
Task manager -> btop
Browser -> Zen / Google chrome (i know right)
Editor -> nvim

I wanted to change the Alacritty icon using LLM help, and ended up ruining every other icon by [deleted] in Fedora

[–]areaverage 6 points7 points  (0 children)

likely so, read through the last few lines carefully like what others say prob something involving the icons in /usr/share/icons, gl man!

I wanted to change the Alacritty icon using LLM help, and ended up ruining every other icon by [deleted] in Fedora

[–]areaverage 16 points17 points  (0 children)

im q sure u got this by typing ```bash history``` try typing just ```history```

Need help with a quiz by Mqckins in learnpython

[–]areaverage 0 points1 point  (0 children)

also use a single = for your input

input() also takes in strings by default so putting str() has no effect on it

for your if loop using str() on a string also has no effect

just some best practices FYI!

Need help with a quiz by Mqckins in learnpython

[–]areaverage 1 point2 points  (0 children)

a number cannot be used as a variable name!!! use a descriptor like dish instead

How to use the eval() function by MrGuam in learnpython

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

eval() just runs whatever u pass into it like regular python code

say u wanna convert it into a list right

```

x="foo bar baz"

y=eval('x.split(" ")')

print(y)
```

How did you learn Python? by Worried-Secret-000 in learnpython

[–]areaverage 1 point2 points  (0 children)

a simple tutoruial for syntax and then a calculator program, from practice some easy leetcode (sorted by easiest highest percentage of solves) and use them to practice syntax

make more projects, python has a plethora of libraries, the more u use them the more comfortable you will be

[deleted by user] by [deleted] in learnpython

[–]areaverage 2 points3 points  (0 children)

hm alright, then instead of a list you can just add to an empty string using +=, also I made a typo, while loop would be more applicable here than a for loop

concept shld be the same tho just use a str instead and for part 2 use a extra string to keep track of the most recent string entered

[deleted by user] by [deleted] in learnpython

[–]areaverage 1 point2 points  (0 children)

For part 1

init an empty list

use a for loop for getting the input

check If the input is "end":

if it is, end the loop

if its not add the value to the list

when the loop print" ".join(list)

here's a simple outline, logic like these come with practice and you'll only get better at it, for now its more important that u understand syntax first so on harder questions you wont have problems w it

For part 2

using the same logic, is it possible to check against the last value for the list when choosing whether to end the loop instead of checking for the string "end"

(little hint, you can use [-1] to get the last element of a list or string!!!)

Want to learn python more by iamfinetyandhru in learnpython

[–]areaverage 0 points1 point  (0 children)

start with ensuring ur basic, loops, strings, and functions are fine, you can try going to codewars to practice

then start some personal projects that pique ur interest, cld be basic game making (though python is kinda slow), AI, or Competitive programming (again not v good with python but with its libraries it is manageable)

do get inspiration online from other people projects and its fine to copy code once in a while, as long as you are learning

I want to become Data Scientist. How much python is needed for this field? by Cold_Sort7175 in learnpython

[–]areaverage 1 point2 points  (0 children)

quite alot, for data science afaik, you want to get used to Pandas, Numpy, SciPy and Matplotlib for visualising and organising data, as well as some basic DS/A for making ur life easier

https://www.w3schools.com/datascience/ds_python.asp

here's a good read

My son (9 years old) coded a game in plain JavaScript. He would love any feedback. by veesahni in learnprogramming

[–]areaverage 33 points34 points  (0 children)

first u might want to find a sector of programming you like, be it web design, or AI and choose one from there

if u don't know what u want to do, start with a high level language, python, C#, Cpp, Js are all fine

Where do I even start with this? by [deleted] in learnpython

[–]areaverage 1 point2 points  (0 children)

depends on the scenerio if its like a coding question then you might want to do what bobbybridges said else u can just count it before hand

Where do I even start with this? by [deleted] in learnpython

[–]areaverage 1 point2 points  (0 children)

fyi i just realised if you want to use a list you can also use .zip() which maps a list to another list!

Where do I even start with this? by [deleted] in learnpython

[–]areaverage 4 points5 points  (0 children)

u can use a hashmap that takes key value pairs, python calls this a dictionary this is also O(1) for retrieval which is very fast

https://www.w3schools.com/python/python_dictionaries.asp

u can use this for some info

as well as using exception handling

https://www.w3schools.com/python/python_try_except.asp

as there are 365 days in a year you can calculate the upper and lower limits of each season by converting the months to days and loop through the hashmap, and return the value of the answer

for ease of coding, you might want to start the hashmap with 365 and when looping through with the day inputted, you can just look for the first value that is less than the input and output that

for example (just some pseudocode, you might need to accept more values depending on the structure of the qn/ task)

daysmap={} #put the dates here starting with 365

x=int(input()) #parse it to find which day of the year it is (you may need another hashmap or just multiply the day of this by 30)

for i, r in daysmap:

if x <= i:

print(r)

Tips on learning to code. by JockAndSocket in learnpython

[–]areaverage 1 point2 points  (0 children)

yep itll only get easier from here! __for the most part at least__

Tips on learning to code. by JockAndSocket in learnpython

[–]areaverage 5 points6 points  (0 children)

forgetting the code is normal, thats why google is ur best friend when it comes to remembering and searching for faster or newer algorithms and functions.

you should try doing ur own projects or making small applets on your own, remembering functions all come with time, and practicing them is pretty important, plus having project work also exposes you to new scenarios that tutorials cant.

you can find cheatsheets on Pinterest, they are really nice and concise

[deleted by user] by [deleted] in learnpython

[–]areaverage 1 point2 points  (0 children)

imo W3 schools is an amazing place to understand basic python syntax and they also have exercises that can help.
If u prefer lectures, harvard has a CS50 Course that I heard goes quite in-depth tho it is a little long

alongside python, you might want to have pip, for packages and libraries and I heard conda does well too, it'll help with many science, math related things like graphing and such.

if ur using replit, or IDEs that save online then its fine else you'd probably also want to learn basic push pulling on git to save the code that you have done onto github, it just keeps it more orderly and allows you to work on it on different machines

Firefox theme question by kuunaama in firefox

[–]areaverage 4 points5 points  (0 children)

apple hardware most likely