r/programmingbydoing • u/vigilantredditor • Apr 05 '16
#4 - What is meant by "Make your program print only one of the lines"?
Having never learned or done any programming, what exactly is meant by "Make your program print only one of the lines", in the What You Should Do on Your Own section on exercise 3? Here is the gist of what I have so far. I also messed around with the code a bit.
1
Upvotes
2
u/holyteach Apr 05 '16
Also!
I swear I'm not just saying this, but I had forgotten how bad the Zed Shaw assignments were.
This assignment is just a translation of one of his assignments from Learn Python the Hard Way a couple of editions ago, and his version is different now.
Anyway.
You might want to take a look at this assignment instead.
1
u/breadkonqueso Apr 05 '16
pretty sure he meant to put the slashes like this
putting them before println ( System.out.//println("blahblah"); ) wont work and inside the statement those slashes will be printed normally. For example:
You could either try to understand this or do the next assignment which explains it better than I can.
•
u/holyteach Apr 05 '16
The problem is that you didn't do the second Study Drill correctly. Instead of
...you should have done
So make that change and compile it, and I think it'll be more clear what the third Study Drill is asking.