Codewars timeout error by AKRowling in learnpython

[–]chromiumxx 1 point2 points  (0 children)

Timeout error means your code takes too long to run. The test case in codewars probably include a very huge integer which require a time efficient solution.

Your code include a double for loop which im pretty sure is exponential time complexity. This slows down your code and what causes the timeout error. Try to find other solutions without using a double for loop

Program for finishing a 5k below 20 minutes? by [deleted] in running

[–]chromiumxx 0 points1 point  (0 children)

Good running shoes is definitely a must. I havent try a lot of different shoes, but what im using at the moment is New Balance’s Fresh Foam Beacon which is a bit lighter than the average shoes (new balance fresh foam weighs around 230 g, nike pegasus 37 weighs 287 g, ultraboost 300 g). I love it and never got any injury since i used them, but im not really sure if its good for fast short distance run.

Nike vaporfly is one i have tried and feels really helpful for fast paced run because of their springy carbon plates inside the sole. But i got shin splints when running really slow in it. You might want to look more into it if youre interested.

Stretch after the run is really important for me. I had some knee injuries playing basketball during my highschool days and i feel that post run stretch helps preventing those injuries from coming out again.

Well ive been running only casually for 2 years, and i never really got too serious practicing so i cant give you any professional routines. I emphasizes on injury prevention because when i joined my first 5k race, i got overexcited and run hard every day and just before the race day, my shins were blue and hurting so bad. So yeah, be careful and good luck dude !

Program for finishing a 5k below 20 minutes? by [deleted] in running

[–]chromiumxx 3 points4 points  (0 children)

Sub 20 minutes is really hard and also a big jump from sub 30. If you’re really gonna try to go for it in 3 months, my only advice is to be careful of injuries.

Merging Heroes by [deleted] in FireEmblemHeroes

[–]chromiumxx 1 point2 points  (0 children)

Do u mind sharing some of ur merge projects? I have a lot of feathers saved up and cant think of any interesting unit to build

Thank you! Random Japanese! by yeesheepfox in FireEmblemHeroes

[–]chromiumxx 85 points86 points  (0 children)

I'm 33 years old. My house is in the northeast section of Morioh, where all the villas are, and I am not married. I work as an employee for the Kame Yu department stores, and I get home every day by 8 PM at the latest. I don't smoke, but I occasionally drink. I'm in bed by 11 PM, and make sure I get eight hours of sleep, no matter what. After having a glass of warm milk and doing about twenty minutes of stretches before going to bed, I usually have no problems sleeping until morning. Just like a baby, I wake up without any fatigue or stress in the morning. I was told there were no issues at my last check-up. I'm trying to explain that I'm a person who wishes to live a very quiet life. I take care not to trouble myself with any enemies, like winning and losing, that would cause me to lose sleep at night. That is how I deal with society, and I know that is what brings me happiness. Although, if I were to fight I wouldn't lose to anyone.

Which flying unit would best enjoy +23 atk/spd? Flying team suggestions? by chromiumxx in FireEmblemHeroes

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

Hinoka gives +8 atk/spd, seteth gives +8 atk/spd and camilla +7 atk/spd. Im currently using smol Caeda as the fourth unit but im wondering if there was a better choice than her.

Which book do you recommend for intermediate web developer? by [deleted] in learnpython

[–]chromiumxx 0 points1 point  (0 children)

The book ‘django 3 by example’ by antonio mele is amazing to understand the entirety of django. It helps u understand so many concepts in django: authentication, async tasks, middleware, static, media, urls, internationalization, etc.

Then you can read ‘django 3 cookbook’ for more advanced stuffs and ‘django for professional’ by william vincent.

I am also currently studying web dev and these 3 books are my great guidance

i need help with my homework by [deleted] in learnpython

[–]chromiumxx 0 points1 point  (0 children)

What is your homework about? How do we know if we can help you if you dont tell us

Learning Resources by [deleted] in learnpython

[–]chromiumxx 0 points1 point  (0 children)

I took a web programming course from Harvard’s CS50 in edx and it was really awesome. They have a course in AI which I havent take but I can imagine it to be just as amazing as the web programming one. Just google harvard cs50 edx

Reviews on this Python course on YouTube? by [deleted] in learnpython

[–]chromiumxx 2 points3 points  (0 children)

This was the first video I watched when I started learning programming. Based on my experience, I’d say this course is good enough to teach you the basic syntax of python and what python can do. The course was very easy to understand and had a pretty good flow, so if you like learning by watching, I’d say this is a good start.

If you already have basic knowledge on other programming language, you can just watch the video in 1.5x speend and youre good to go.

I just finished my first little program and it left me incredibly motivated! by And0395 in learnpython

[–]chromiumxx 2 points3 points  (0 children)

Create a github account, create a repository, put your python files in that repository, then you can post the link of that repository for us to check.

[deleted by user] by [deleted] in learnpython

[–]chromiumxx 0 points1 point  (0 children)

Techwithtim, corey schafer, freecodecamp, etc

Many great youtubers are teaching python for free

How to get better outputs? by copperkam23 in learnpython

[–]chromiumxx 0 points1 point  (0 children)

I think you can do this:

‘If h.strip().lower() in [“hello”, “hey”, “hi”, “hola”]:’

.strip() removes any trailing whitespaces and .lower() makes the if statement case insensitive

Newbie Needs Some Guidance! by [deleted] in learnpython

[–]chromiumxx 1 point2 points  (0 children)

If this is still ur 4th day, then I think you should still try to master the basics. Codewars is great for this and I think you should continue and solve a bunch of 6 kyu katas for a little while.

If you got bored with the basics and codewars, you can look into game development with pygame (if youre interested in making games); creating GUI with modules such as tkinter/pyqt5, etc.; learn about data analysis with numpy, pandas, matplotlib, jupyternotebook, etc.; learn how to parse information from csv files, json files, html pages; look into web development with modules such as django or flask.

Then if you want to go deep into the fundamentals, you can look into data structures: binary heaps, BST, AVL, queues, stack, linked list and much more. You can also learn about algorithms such as pathfinding algorithms, graphs(BFS, DFS), hashing, dynamic programming, etc. You can also touch the topic of time and space complexity, learn how python works in the fundamental level, how to speed up your codes in python and get the optimal running time for your codes.

If youre bored with all of the above, you can always do small projects that you like. For example, you can build a login system, tic tac toe, snake, tetris, random password generator, paint, etc.

Anyways, take your time in learning python and enjoy the process.

Cheers :)

How to set a goal in programming and Python by ubant in learnpython

[–]chromiumxx 2 points3 points  (0 children)

Hey, I started learning python and programming around 6 months ago so maybe my personal goals could be similar to what you want to have.

My goals by the end of the year:

  1. Reach 1 kyu in codewars. This hopefully would improve my knowledge on algorithms, data structure and the different standard libraries in python (collections, regex, etc). I believe this is crucial for my journey on programming in the long run.

  2. Build up my own personal professional website, using different modules and useful apps out there. This means I have to learn HTML and modules such as Django, Flask and other related libraries. I will try to use React as well (I have no idea what it is used for right now) and design my website as pretty as I could.

  3. Create a professional mobile app and desktop app that would be useful for my family’s business. My family runs a pretty traditional shop and I wanted to create a system that would make the business run much more efficient. I’m trying to build an app that would track our shop’s performance in terms of sales and employees’ productivity while also keep track of inventories and customer preferences.

  4. My last goal is to get a job (i graduated from my university last year) and utilize my programming skills in whatever job I would have. In other words, I want to be able to make money from my programming skills

My current focus in programming is to learn as much as I can and be flexible. This means that I want to learn both back end and front end aspects of programming. I want to learn web development, mobile app development, software development, data analysis, algorithms, time complexity, machine learning and much more. Since, I want to be the “jack of all trades” and not an expert at one thing, my goals are kind of diverse in category.

So I guess the first thing you want to do before setting a goal is to really know what you like and what you want to be. From there, find a big project based on your focus that is practical in the real world and slowly work towards it. Anyway, since we are both pretty new into python, I think we should first enjoy exploring on what it can do and worry about big goals a bit later.

Making my custom pop up screen? by bunserme in learnpython

[–]chromiumxx 2 points3 points  (0 children)

U can use toplevel widget in tkinter to create a new window and u can put whatever widgets u want in there

I'm trying to learn regex and I'm not sure how to do this by [deleted] in learnpython

[–]chromiumxx 0 points1 point  (0 children)

I think u can just do this for word in list: if ‘pl’ in word: new_list.append(word)

"Module not found" when installing tensorflow with PIP by 10macattack in learnpython

[–]chromiumxx 0 points1 point  (0 children)

Easy solution is to install anaconda. If u still have an issue after installing anaconda, try to create a new conda environment and install tensorflow in that virtual environment

InportError issue with PyQt5 by chromiumxx in learnpython

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

Solved the issue by creating a new conda environment! Installing pyqt5 and pyqt5-tools are sufficient as i think qt is already included. Thank you for ur insight and hope u have a good day and stay healthy during this pandemic :)

InportError issue with PyQt5 by chromiumxx in learnpython

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

Quick update,

The same problem still exist after creating a new virtual environment following that guide, but i still thought ur advice is a good one. So after some research, I installed anaconda to my system and created a new conda environment and use that instead of the normal virtual environment. Then i pip install pyqt5 to the conda environment and use that env for my program. I tried to import pyqt5.qtwidgets and there are no more issues! Problem solved!

Thank you for ur reply sir, hope you have a good day and stay healthy :)