Author Topic: Python Easy Examples help  (Read 14214 times)

0 Members and 1 Guest are viewing this topic.

Offline xzid

  • Knight
  • **
  • Posts: 329
  • Cookies: 41
    • View Profile
Re: Python Easy Examples help
« Reply #15 on: August 13, 2011, 04:51:11 am »
glad could help, for capital problem...  change lines to:

player1 = raw_input ("Player 1? ").lower()

same w/player 2. once again, in theory. Have no python on windows only on my linux.

Offline blankanon

  • Serf
  • *
  • Posts: 21
  • Cookies: -1
    • View Profile
Re: Python Easy Examples help
« Reply #16 on: August 13, 2011, 05:04:12 am »
I am working on another practice project.  I understand the question, but I am confused by it if that makes sense.


The problem is as stated:


Using a for loop, write a program that prints out the decimal equivalents of 1/n where [tex]n\in\mathbb{Z}[/tex] and [tex]1 \leq n \leq 10[/tex]. 


Does Latex work on this site?  If not, who can I ask about having it installed?


Thanks.

Offline xzid

  • Knight
  • **
  • Posts: 329
  • Cookies: 41
    • View Profile
Re: Python Easy Examples help
« Reply #17 on: August 13, 2011, 05:07:07 am »
« Last Edit: August 13, 2011, 05:08:27 am by xzid »

Offline blankanon

  • Serf
  • *
  • Posts: 21
  • Cookies: -1
    • View Profile
Re: Python Easy Examples help
« Reply #18 on: August 13, 2011, 05:55:50 am »
I know Latex.  However, it won't work on the site unless it is set up.

Offline xzid

  • Knight
  • **
  • Posts: 329
  • Cookies: 41
    • View Profile
Re: Python Easy Examples help
« Reply #19 on: August 13, 2011, 06:05:49 am »
yeah exactly, I have no control over it.

But if Z is set of all integers, and you need all integers between 1 and 10... Then create array(range will do) then use for loop and print 1/result.

http://docs.python.org/tutorial/controlflow.html

4.3 will help.

No more homework help from me.
« Last Edit: August 13, 2011, 06:06:29 am by xzid »

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Python Easy Examples help
« Reply #20 on: August 13, 2011, 12:05:52 pm »
You should do some testing and reading and learning more instead of asking these simple questions that you could have solved it by the end of the day... lrn2lrn :|
« Last Edit: August 13, 2011, 12:06:12 pm by Kulverstukas »

Offline Kreek

  • Peasant
  • *
  • Posts: 134
  • Cookies: 2
    • View Profile
Re: Python Easy Examples help
« Reply #21 on: August 14, 2011, 11:51:08 am »
You should do some testing and reading and learning more instead of asking these simple questions that you could have solved it by the end of the day... lrn2lrn :|

At least he is programming... But you have a point Kul, like the question with the quotes could be easily been avoided by just trying on your own. But I like his dedication?

@TS
Keep trying, keep making small games like this! When you got problems, just try solve it on your own. And if you got questions after you tried, just post here!

Offline blankanon

  • Serf
  • *
  • Posts: 21
  • Cookies: -1
    • View Profile
Re: Python Easy Examples help
« Reply #22 on: August 14, 2011, 09:46:28 pm »
At least he is programming... But you have a point Kul, like the question with the quotes could be easily been avoided by just trying on your own. But I like his dedication?

@TS
Keep trying, keep making small games like this! When you got problems, just try solve it on your own. And if you got questions after you tried, just post here!


That is what I do.  If I can't figure it out or I am not sure, I ask.

Additionally, I have been watching MIT's OpenCourseWare videos on Introduction to Computer Science and Programming since they use Python.
« Last Edit: August 14, 2011, 09:48:48 pm by blankanon »

Offline Kreek

  • Peasant
  • *
  • Posts: 134
  • Cookies: 2
    • View Profile
Re: Python Easy Examples help
« Reply #23 on: August 14, 2011, 11:47:37 pm »

That is what I do.  If I can't figure it out or I am not sure, I ask.

Additionally, I have been watching MIT's OpenCourseWare videos on Introduction to Computer Science and Programming since they use Python.

But i'm talking about this:
Quote from: blankanon
So here is what I tried and I was told rock isn't defined line 9

That's quite an easy error to fix... You should be able to fix those errors. And if you don't, try to search the internet for your error. And al those things don't work, then post here.


EDIT: Try to make me a OXO-game. ;)
« Last Edit: August 14, 2011, 11:48:05 pm by Kreek »

Offline blankanon

  • Serf
  • *
  • Posts: 21
  • Cookies: -1
    • View Profile
Re: Python Easy Examples help
« Reply #24 on: August 15, 2011, 01:06:18 am »
But i'm talking about this:
That's quite an easy error to fix... You should be able to fix those errors. And if you don't, try to search the internet for your error. And al those things don't work, then post here.


EDIT: Try to make me a OXO-game. ;)


This is only my 3rd day on Python.  I didn't understand what that meant.

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Python Easy Examples help
« Reply #25 on: August 15, 2011, 10:42:39 am »
This is only my 3rd day on Python.  I didn't understand what that meant.

Again... you should have googled... http://en.wikipedia.org/wiki/OXO

I don't know but unless you lrn2google, you won't seem to able to learn anything...

Offline blankanon

  • Serf
  • *
  • Posts: 21
  • Cookies: -1
    • View Profile
Re: Python Easy Examples help
« Reply #26 on: August 15, 2011, 09:13:12 pm »
Again... you should have googled... http://en.wikipedia.org/wiki/OXO

I don't know but unless you lrn2google, you won't seem to able to learn anything...


I never said I didn't understand what OXO meant.  I was referring to Kreek comments minus the edit piece. 

That should have been easily inferred by the past tense (didn't).  If I would have said I don't, then it would have been implying the current post.

Even though you are an admin, don't be an ass just to be one.
« Last Edit: August 15, 2011, 09:14:37 pm by blankanon »

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Python Easy Examples help
« Reply #27 on: August 15, 2011, 09:41:40 pm »

I never said I didn't understand what OXO meant.  I was referring to Kreek comments minus the edit piece. 

That should have been easily inferred by the past tense (didn't).  If I would have said I don't, then it would have been implying the current post.

Even though you are an admin, don't be an ass just to be one.
I am not trying nor I am an ass - I am being fairly good.
Since this is a forum, I can't hear your voice tone, so admit it that it was your fault that you did not refer to the OXO game asking you did not understand, yet you did quote that line, therefore I assumed you were referring to that line seeing as the referring sentence is after the dot after the sentence that explains your lack of skill in Python, which was stated in Kreek's post.

Offline blankanon

  • Serf
  • *
  • Posts: 21
  • Cookies: -1
    • View Profile
Re: Python Easy Examples help
« Reply #28 on: August 16, 2011, 03:57:51 am »
I am not trying nor I am an ass - I am being fairly good.
Since this is a forum, I can't hear your voice tone, so admit it that it was your fault that you did not refer to the OXO game asking you did not understand, yet you did quote that line, therefore I assumed you were referring to that line seeing as the referring sentence is after the dot after the sentence that explains your lack of skill in Python, which was stated in Kreek's post.


You made the cardinal sin--you assumed.  I was fairly clear in the structure of my sentence that I was speaking of a something in the past and not present (i.e. not the current thread post).


However, I need to focus on programming not the semantic interpretations of the word "didn't".



« Last Edit: August 16, 2011, 03:58:16 am by blankanon »

Offline xzid

  • Knight
  • **
  • Posts: 329
  • Cookies: 41
    • View Profile
Re: Python Easy Examples help
« Reply #29 on: August 16, 2011, 06:09:02 am »
Just curious which sin does assuming fall under, pride?

Quote
Additionally, I have been watching MIT's OpenCourseWare videos on Introduction to Computer Science and Programming since they use Python.

Learning programming through videos seems like a bad idea to me. Just read a regular tutorial. Once you got a hang of python, then you could research specific things that interest you.

... Also chill with the grammar, both of you.