Prefixing with 0
I want to prefix my code with one leading 0:
CS50P outdated not resulting in the corrects outputs
My code is missing two of the verified outputs. Can`t re-prompted the user if the input contains month written in a xx/xx/xxxx date form and inputs missing the coma like in October 8 1701.
Check50 seems to be returning a wrong result in PageRank
I have been working on PageRank for the CS50 AI course, my code:
:( Little Professor displays number of problems correct
Hi, I’m doing CS50p’s Little Professor problem from problem set 4. The problem is as follows:
I’m getting “timed out while waiting for program to exit”
your text
import random
your text
def main():
your text
number = get_int()
your text
newRandomInt = rand(number)
your text
while True:
your text
try:
your text
guess = int(input(“Guess: “))
your text
if guess < 0:
your text
continue
your text
elif guess < newRandomInt:
your text
print(“Too small!”)
your text
continue
your text
elif guess > newRandomInt:
your text
print(“Too large!”)
your text
continue
your text
elif guess == newRandomInt:
your text
print(“Just right!”)
your text
break
your text
else:
your text
break
your text
except ValueError:
your text
pass
How is the * wrong?
Im currently learning Python over the cs50p course and i’ve tried to do the problem sets, yet I’ve ran into an Issue. It wont complete the multiplication and I don’t understand why.
Link to the problem set: https://cs50.harvard.edu/python/2022/psets/0/tip/
CS50 PYTHON Problems Week2 : Vanity Plates [closed]
Closed 4 days ago.
Unable to enter user input as list in python
I expected that the code would ask me for input as many times as I want and then print out the number of times the input has been entered along with the name, capitalized. However, it only prints out the last input with 1 in front of the input
failing automatic check for CS50’s “Little Professor” problem
I am trying to solve the “Little Professor” problem from CS50P Problem Set 4, but my code is not passing the “check50” automatic code check. I tried to find cases of people having the same problem, but it seems like their code had mistakes that mine doesn’t (like not using range function properly, or calling generate_integer function twice).
I have problem with cs50p pset6 “CS50 P-Shirt”, code fo what its supposed to do but check50 still gives me errors
from PIL import Image, ImageOps
import sys