Skip to main content

Questions tagged [spaces]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
271 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 ...
kenn92's user avatar
  • 3
0 votes
1 answer
207 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." ...
Sion Williams's user avatar
1 vote
1 answer
57 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 ...
Beyn18's 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 ...
Dani's 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 ...
Whitney Alexander Kluttz's 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 ...
Austin Tyler Cunningham's user avatar
0 votes
1 answer
556 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++) /...
Patrick Fisher's user avatar
0 votes
1 answer
91 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 ...
Jarrid Gable's user avatar
0 votes
1 answer
137 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?
user11806's user avatar
0 votes
1 answer
103 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 ...
Tamara Thomas's user avatar
1 vote
1 answer
487 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? ...
K. Roe's 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. ...
Nilabha Chatterjee's 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 ...
Nilabha Chatterjee's user avatar
0 votes
1 answer
580 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: ...
Jzag's user avatar
  • 9