Python isn't bad but then again it's not useful.
Want to build a web server/API? You have Go, NodeJS, .etc
Want to design a web page? HTML, CSS, JS, Bootstrap .etc
Want to build a GUI application? C++, Java, and Electron
Want to build your own operating system or write code low level? C, C++, Rust, .etc
When I think of python, I really only see it as something in the "niche" category. The language isn't really engineered for anything.
I suggest learning Rust. It's syntax is understandable, makes you a better coder (the rust compiler teaches you about how to safely handle your code, useful in the future), works in any field except web page development (of course), and it's compiled -> faster. But again, there are so many other languages you should try.
If you really decide to learn python, there is no route back. Python is too easy to learn, and sometimes it's just not really ideal to use python when there is a better alternative. That's why you see people make python scripts instead of python programs.
I suggest try something new. Don't fall into a rabbit hole, and take a language that really interests you.
Want to build a game? Learn C++, it takes you from simple text based games to full fledged graphical games.
Want to start a shop? Learn NodeJS, PHP, or HTML/CSS/JS.
There is much more programming languages than "Python", "HTML/CSS/JS", and "Python".
There is even more to the list. Scala, Nim, heck even Basic and Assembly.
Do what you want, not what others want you to do.
Go to the languages page and click something random from the list. Then research about the language. If you like it, use it!
Wait a minute- How is this possible?
Such a formula would require intense computing power which we don't have- and the last site I've been on was only able to calculate the 21 first primes of Fibonacci. Edit: Wikipedia says there are only has 34 proven fibonacci primes. Not 50.
So are you looking for a working program that theoretically could do it? Or you want an actual prototype?
@hello4691 Nevermind the last comment. This is possible in python via wrappers:
def loopwrap(func, *args, **kwargs): def inner(cond, *args, **kwargs): while not cond: func(*args, **kwargs) return inner @loopwrap def test(): print('okay!') test(True) #doesn't work test(False) #does work
I always wanted to do something like this. Looks like someone beat me to it :)
Of course! ...
Next time search up your question BEFORE you ask in post.
No, MM/DD/YYYY confuses me, you small brain
Oh ho ho...
This is anarchy - everything is griefed
Creative mode needed. Feels like MC lite :) (The Nostalgia)
It's kinda unethical. However I am not saying that you can't do this, I just want to say it's unethical and that I was going to make this comment yesterday, but I wasn't able to put it in terms of words.
It doesn't make sense to try to gain extra cycles from people who just want an answer. I understand you want cycles- but for what? You don't earn money from cycles, do you? Will you put it in you resume? No. It's just reputation, like stackoverflow. But unlike stackoverflow, there is no losing cycles from unhelpful answers. So even if you had a lot of cycles, people won't even respect you- you didn't do actual work to deserve it.
I'm not saying this to be rude, but I hope you understand.
Generally for all languages, I would expect for you to put each section of your game into a function and have that function started for a restart button.
I can clarify this more if you tell me what language you are using and/or the repl.
@IzanLarumbe Here's a quick rundown of a cycle:
A cycle is how many times someone upvoted your post or comment, or if you answered someone's question. (I believe it's like Reddit karma?)
Now that I have answered your question,
Wait a minute...
Did you do this in a Repl Team? If not you should port your code over and use the Admin CI to enter that team in the jam.
I really like the Repl DB. My only issue is key size limits.
Also, please add the ability to view the Database!
That's really cool @MohamadAlshabab!
But you can achieve this goal in a much easier and efficient way. Instead of using the unpacking operator
*, slice the list using a negative index. This tells python to read right to left. So
digits[-2] should give you the second-to-last character or the tens digit (same applies to ones:
digits[-1] should give you the last character). This also fixes a bug where your code thinks that the tens place is the hundred place.