Skip to content
Sign upLog in
Profile icon

pyraminx

@pyraminx
Learning python and other things.
  • Tic-Tac-Toe

    Cover page
    Made with Python
    Recent comments (0)
  • Hangman

    Cover page
    Made with Python
    Recent comments (0)
  • Prime number

    Cover page
    Made with Python
    Recent comments (1)
    pyraminx
    pyraminx
    9 months ago

    With this project you can always know if a number is prime or not, if it’s not, it shows the factors of the number.

    This program is good (by that I mean quick) when working with little numbers, but when the number gets larger (about eight digits or more) the program gets (very) slow. Any tips?

  • Quiz 2

    Cover page
    Made with Python
    Recent comments (0)
Repls
Community
pyraminx
pyraminx
published a Repl
6 months ago
0
Was für ein Cookie
Was für ein Cookie
pyraminx
pyraminx
published an Update
9 months ago
0
Prime number
Prime number
With this project you can always know if a number is prime or not, if it’s not, it shows the factors of the number. This program is good (by that I mean quick) when working with little numbers, but when the number gets larger (about eight digits or more) the program gets (very) slow. Any tips?
#python
#primenumbers
pyraminx
pyraminx
shared a Post
2 years ago
7
Hello, I’m a little bit in trouble with that basic project. It’s a simple quiz (about the Rubik’s Cube (-:). I wanted to add a score (if the answer is
Quiz
Python
HermioneGrange2
HermioneGrange2
You need to add points like this: score = 0 question = input('ksljafoiwahgsdaf?') question = int(question) if question = True: score += 1 elif question = False: score -= 1 print(score) `2 years ago
RYANTADIPARTHI
RYANTADIPARTHI
Solution all you have to do is to make a variable, and increment it, whenever something happened. score = 0 if something: score += 1 like that. That should work2 years ago
robowolf
robowolf
It should be points -=1/+=1 not points =-1/=+1. This assigns the variable to either -1 or 1 rather than adding it.2 years ago