Need Help with writing this code!? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Homework (https://python-forum.io/forum-9.html) +--- Thread: Need Help with writing this code!? (/thread-1960.html) |
Need Help with writing this code!? - r6lay - Feb-06-2017 I am in a computer science course at college, and I am so new to this that even reading the chapters, and watching youtube videos does not help me. I have an assignment due this week that I have no idea how to even begin... if anyone could help me out it would be greatly appreciated. Thank you so much The first assignment is:
RE: Need Help with writing this code!? - ichabod801 - Feb-06-2017 (Feb-06-2017, 08:36 PM)r6lay Wrote: I have an assignment due this week that I have no idea how to even begin. Well, that's a problem. We don't do people's assignments for them. We help people do their assignments when they run into problems. Given what you've stated, you need to think about the following things:
RE: Need Help with writing this code!? - r6lay - Feb-06-2017 I understand, I didn't mean for anyone to do it for me but I don't even know where to begin, but thank you thats very helpful! RE: Need Help with writing this code!? - Ofnuts - Feb-06-2017 Start small.
RE: Need Help with writing this code!? - tannishpage - Feb-08-2017 Um. I don't know how the circle one might work but i might be able to help with the ascii conversion. Steps: 1.)Ask user input eg: input("Enter something: ")2.)Look up on the internet the ascii conversions. Store them in a dictionary. (Look up how dictionaries work.) 3.)Now write a print statement that prints out the key for the item. Reply for more help. If that is not what you are looking for than well good luck. RE: Need Help with writing this code!? - Larz60+ - Feb-08-2017 If you just need to pass this course as a requirement and have no interest in learning about programming, stop reading now. If on the other hand, you'd like to learn about ASCII, how it came about and is structured the way that it is, and how programmatically you can categorize an ASCII character you can start with this article: https://en.wikipedia.org/wiki/ASCII. From this, you can see why any character < '00100000' binary (and also == 01111111) are control characters (and not printable). Using a pattern of masks, you can programmatically determine the the answer to Quote:How can you use a value to make different choices?assuming (value = ASCII value) RE: Need Help with writing this code!? - nilamo - Feb-13-2017 (Feb-06-2017, 09:09 PM)r6lay Wrote: I understand, I didn't mean for anyone to do it for me but I don't even know where to begin, but thank you thats very helpful! character = input("give me a character, yo! ") # now do things, depending on what that character is # for example... if character.isdigit(): print("That's a number, dude") RE: Need Help with writing this code!? - Ofnuts - Feb-13-2017 1) is quite simple if you consider that you are just writing all numbers from 0 to 9999 ( range(10000) , in Python) in base 26 using a...z as digits.2) depends a bit on what is meant by "draw". If it means "pick at random", then you are just picking 3 pairs of coordinates at random. Then given the user input, you can test if the distance between the user's coordinates and each of the three points is less that 50 and increment a counter if yes. Then from the final contents of the counter you can assign the final score. |