Skip to main content
2 votes

MARIO LESS COMFORTABLE

Using the 5 pyramid as a guide: Height: 5          ##        ###      ####  &...
DinoCoderSaurus's user avatar
2 votes
Accepted

Python Caesar not working for mix case etc

Multiple things. if plaintext.isupper(): you meant i.isupper(). plaintext.isupper() would check whether the whole string is upper-case, which it is not, but it also isn't completely lower-case, so ...
Blauelf's user avatar
  • 21k
1 vote
Accepted

Readability CS50 Not counting the spaces

string input = get_string("Text:"); //getting input from the user int len = strlen(input); //determining the length of the string int space = 0; //declaring a variable to count whitespaces ...
Crisp_Coder99's user avatar
1 vote
Accepted

Struggling to align pyramid and check for extra spaces at the end of each line in pset6 mario.py less

Don't make things complicated. for x in range (height): print((height-x - 1)*' ' + (x+1)*'#')
Ojou Nii's user avatar
  • 731
1 vote
Accepted

Can't properly check mario.c less comfortable, something wrong with spacing

Your staircase has the stairs going down to the right. They're supposed to go up from the left. Perhaps a review of the assignment specification is in order? There's a second problem lying in wait, ...
Cliff B's user avatar
  • 69.2k
1 vote
Accepted

PSET 1 Mario calculating spaces

You don't need it to be height-i-1 and you can just do height-i Your hashes can be i+1 rather than i+2 If you do this, I think it will work as planned. Hope this helps, Ian
Ianardo's user avatar
  • 63
1 vote

What is the difference between 'printf(" ");' and 'printf("%s"," ");'?

They should work exactly the same. printf(" "); will print a single space, the content between the double quotes. printf("%s"," ") will grab the first parameter " "after the format string, "%s" and ...
Cliff B's user avatar
  • 69.2k

Only top scored, non community-wiki answers of a minimum length are eligible