Maev's Recent Forum Activity

  • I have been doing python, and im not that great at it, but am trying to learn the ins and outs.

    im having a problem with some code, this is what i want;

    *user inputs some information after a question* this is an interger under a word... here's some code to explain:

    aaoc=raw_input("enter your selection, between 1-9:")

    I then want to do something like the following...

    import random

    random.randint(1,aaoc)

    I'm sure you can see what im trying to do, simply give the user a range option on a random output.

    I've never really understood the conversions, I'm guessing ill need to add some "str" somewhere, I've tried a few spots and none work.

    Thanks in advance, having this answered if possible will clear ALOT up for me, because int and str functions i never actually caught onto when in class.

    • maev

    p.s my programming jargon sucks, so i probably look silly, hope you don't mind

    edit: i also realize this isn't really a spot to ask python support, but i've seen some of the stuff some of you have said regarding python and you all seem quite knowledgeable, and im unsure where else to ask.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Maev's avatar

Maev

Member since 7 Feb, 2008

None one is following Maev yet!

Trophy Case

  • 16-Year Club

Progress

16/44
How to earn trophies