Questions tagged [spaces]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
100 views

Readability CS50 Not counting the spaces

In my if statement I am trying to say, "if there is a space in strlen subtract that space then print strlen." My goal is to count only the letters that appear in the string and not the ...
user avatar
  • 3
0 votes
1 answer
121 views

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

I'm struggling to meet these specifications - "Be sure that the pyramid is aligned to the bottom-left corner of your terminal, and that there are no extra spaces at the end of each line." ...
user avatar
1 vote
1 answer
52 views

Python Caesar not working for mix case etc

I've pretty much gotten my program to work 90% successfully! But, it does not produce the correct outcome for mix case or spaces/symbols. I've tried a number of different methods to no avail. At the ...
user avatar
  • 21
0 votes
0 answers
1k views

Extra Space Printing in CS50 Pset6 Mario Less - Python Version

Looks like similar questions were asked but I'm having problems with the Python version. Output looks fine on the surface but apparently the program is printing an extra spaces. I have played with the ...
user avatar
  • 1
0 votes
2 answers
219 views

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

I seem to be so close to the end of passing this assignment. My staircase seems to come out perfect, but when I go to check it with check50, I'm told that there appears to be something wrong with my ...
user avatar
3 votes
3 answers
12k views

MARIO LESS COMFORTABLE

I have been working at this pset for hours. within 5 minutes i got the hello.c and water.c assignments completed. But when it comes to mario.c, I am utterly lost. I have watched every video. I ...
user avatar
0 votes
1 answer
526 views

PSET 1 Mario calculating spaces

Having a little issue understanding this. in the mario code I'm looking at. // I understand this repeats the loop "pyramid_height" times. all good here. for(int i = 0; i < pyramid_height; i++) /...
user avatar
0 votes
1 answer
84 views

Understanding for loops and lingering questions I need answered before moving on!

I coded this and it passes. I just want to understand it much better than I do at this moment. I got hung up on a few of things and found the solutions online to those questions I was having but I ...
user avatar
0 votes
1 answer
127 views

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

Iam currently working on pset1 mario .when i used printf(" "); to print spaces before hash it didn't work as expected.but then i used printf("%s"," ") it works now .what is the reason behind this?
user avatar
0 votes
1 answer
100 views

Pset1 How do I indicate that I want to print a blank space?

I'm working on the Mario problem and believe that I have an understanding of how to code it. However, I don't know how to go about making a "blank space" (like when the space bar is pressed) within ...
user avatar
1 vote
1 answer
483 views

Vigenere key counts spaces in progression

Whenever I type plaintext into my vigenere cipher, it moves forward one letter when it encounters spaces or punctuation, even though the key does not affect those characters. How can I prevent this? ...
user avatar
  • 19
0 votes
2 answers
243 views

Spaces help Mario

Ok so after a lot of effort I decided how I wanted to get the spaces done. Now this seems like a tiny problem to me: the multiplication sign doesn't work, the terminal ... like doesn't recognise it. ...
user avatar
0 votes
2 answers
1k views

Tips on spaces and hashes Mario

So I've been on Mario for about a week now and I have the user input part and the rows right, and I just need someone to give me tips or how to get started on the spaces and hashes, and btw I really ...
user avatar
0 votes
1 answer
564 views

Mario help! Spaces and hashes do not match the code

This is what my program outputs: Please give me an height for your tower between 0 and 23. 4 ....### ...## ..# . jharvard@appliance (~/Dropbox/pset1): The meat of my code for running this is below: ...
user avatar
  • 9