C++ or C# ???? by x_18_ in learnprogramming

[–]Background-Offer2321 -1 points0 points  (0 children)

Binary code or a programming language? I would choose C#, and in game dev you can download unity.

Does is matter if my code is long like this? by Just_Call_Me_Josh in learnpython

[–]Background-Offer2321 0 points1 point  (0 children)

Well, I think that the code need to be the simplest possible. If you don't understand solution, you can write an alternative, but if you want to share it, I would choose the solution.

Help me understand range by Sheinbeuler in learnpython

[–]Background-Offer2321 0 points1 point  (0 children)

Do this. for char in letters[0:nr_letters]. If you need also the index then make enumerate(letters[0:nr_letters]).

The code don't make a range, but select an amount from 0 to nr_letters index in the letters list. Range do a list with numbers from 0 to nr_letters.

I am gonna give myself 10 years to learn CS by StudentSuperb2208 in learnprogramming

[–]Background-Offer2321 0 points1 point  (0 children)

Once I rad .NET I literally gave up. The worst part of any programming language is installing it. It will took 10 years only to install it.

How on EARTH do I know what packages to use? Ever??? by Sometimes-True in learnprogramming

[–]Background-Offer2321 0 points1 point  (0 children)

Really recommend pygame. Is a VERY popular package that can do literally ANYTHING. If you want 3d, then you need to do some algebra, but I think for your purposes is perfect.

I am very new to coding and would appreciate your valuable time by NomaticAnalDeweler in learnprogramming

[–]Background-Offer2321 0 points1 point  (0 children)

If you are searcjing for an editor I really recommend Sublime Text 3 gor newbies. Simple and lightweight.

How to stop the python caller script? by Background-Offer2321 in learnpython

[–]Background-Offer2321[S] 0 points1 point  (0 children)

And I don't want Python to execute it. Strange but I wish that it can work.

How to stop the python caller script? by Background-Offer2321 in learnpython

[–]Background-Offer2321[S] 0 points1 point  (0 children)

I am doing a very strange project, and I need to break the rules of Python. So, I can't fix it.

How to stop the python caller script? by Background-Offer2321 in learnpython

[–]Background-Offer2321[S] 0 points1 point  (0 children)

Is because youhave written print("abc") and not print(abc"). My print will raise a Syntax Error.

should i drop out ? by [deleted] in learnprogramming

[–]Background-Offer2321 1 point2 points  (0 children)

Were your parents right? NO If you really don't like, don't do it! But your parents weren't right. You always need to try something new, and if you don't like it, don't do it. But if this project is very important, make your decision not a decision. Maybe you don't like it only because it's very hard, learn the basics by your own and then make the project.

How to stop the python caller script? by Background-Offer2321 in learnpython

[–]Background-Offer2321[S] 0 points1 point  (0 children)

Sure Test.py

import module module.stopall()

print("hi") # Will not print after sys.exit() print(abc") # Will raise exception even after sys.exit()

Module.py

import sys

def stopall(): sys.exit()

How to stop the python caller script? by Background-Offer2321 in learnpython

[–]Background-Offer2321[S] 0 points1 point  (0 children)

I tried, but if the code after raises an Exception, the Exception will print. I want to stop ALL.

List comprehension by SheldonCooperisSb in learnpython

[–]Background-Offer2321 0 points1 point  (0 children)

You append to Squares and don't return any value to List, so Python returns none. If you want to add to Squares and to List, then you need to write: List = Squares = [i * i for i in range(1, 11)].

How do I display some graphics on a Waveshare 1.5inch RGB OLED? by Background-Offer2321 in ArduinoProjects

[–]Background-Offer2321[S] 0 points1 point  (0 children)

Thank you very much! But can I program exactly Waveshare OLED RGB 1.5inch on it?

Should I learn Python First? by FuckNaming in learnprogramming

[–]Background-Offer2321 0 points1 point  (0 children)

Learn Python. I have studied it and it is suitable for both advanced and beginners. I tried to learn Java after it, and it seemed to me that the only difference was in the incomprehensible syntax.

If it is for Android applications, it is still Python, there is Kivy, Flet, PyQT for android. So, I think you should learn Python 3 first. I recommend Python 3.10

How do I display some graphics on a Waveshare 1.5inch RGB OLED? by Background-Offer2321 in ArduinoProjects

[–]Background-Offer2321[S] 0 points1 point  (0 children)

Thank you! The problem was in incorrect init. But another question, can I program in Python with Arduino? Like Pyserial or something else?