Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Top Posters

Who's Online (0)

Powered by Vanilla. Made with Bootstrap.
Great E-Books
  • chroniccommand
    Posts: 1,389
    So I recently went through my collection of E-Books on my iPod touch. I connected to it, and put a bunch of them in a good ol' tarball for you. Just visit my T35 HERE And download a tarball and un-zip it. Books included:
    [list]
    [*]C Reference[/*:m]
    [*]Fedora in a nutshell[/*:m]
    [*]Linux in a nutshell[/*:m]
    [*]132 C / C++ E-Books[/*:m]
    [*]Learn Python[/*:m][/list:u]
    NOTE: Most were to big, so I uploaded to MegaUpload and put the links in the E-Book directory.
  • DizzY
    Posts: 155
    I'm learning python at the moment. :D

    Can you check of my calculator.


    #!/usr/bin/python
    import time
    print \"Welcome to DizzYs Calculator!\"
    time.sleep(2)
    print \"1) add\"
    print \"2) subtract\"
    print \"3) multiply\"
    print \"4) divide\"
    time.sleep(1)
    userChoice = int(raw_input(\"Enter a number as an option: \"))
    while True:
    if userChoice == 1:
    addNumberA = int(raw_input(\"What is the first number you would like to add: \"))
    addNumberB = int(raw_input(\"What is the second number you would like to add: \"))
    addEquals = addNumberA + addNumberB
    print addEquals
    time.sleep(1)
    break

    elif userChoice == 2:
    subtractNumberA = int(raw_input(\"What is the first number you would like to subtract: \"))
    subtractNumberB = int(raw_input(\"What is the second number you would like to subtract: \"))
    subtractEquals = subtractNumberA - subtractNumberB
    print subtractEquals
    time.sleep(1)
    break

    elif userChoice == 3:
    multiplyNumberA = int(raw_input(\"What is the first number you would like to multiply: \"))
    multiplyNumberB = int(raw_input(\"What is the second number you would like to multiply: \"))
    multiplyEquals = multiplyNumberA * multiplyNumberB
    print multiplyEquals
    time.sleep(1)
    break

    elif userChoice == 4:
    divideNumberA = int(raw_input(\"What is the first number you would like to divide: \"))
    divideNumberB = int(raw_input(\"What is the second number you would like to divide: \"))
    divideEquals = divideNumberA / divideNumberB
    print divideEquals
    time.sleep(1)
    break

    else:
    print \"You have chosen an invalid option, goodbye\"
    time.sleep(1)
    break

    print \"There ya go and bye.\"
    time.sleep(1)
  • chroniccommand
    Posts: 1,389
    said:


    I'm learning python at the moment. :D

    Can you check of my calculator.


    #!/usr/bin/python
    import time
    print \"Welcome to DizzYs Calculator!\"
    time.sleep(2)
    print \"1) add\"
    print \"2) subtract\"
    print \"3) multiply\"
    print \"4) divide\"
    time.sleep(1)
    userChoice = int(raw_input(\"Enter a number as an option: \"))
    while True:
    if userChoice == 1:
    addNumberA = int(raw_input(\"What is the first number you would like to add: \"))
    addNumberB = int(raw_input(\"What is the second number you would like to add: \"))
    addEquals = addNumberA + addNumberB
    print addEquals
    time.sleep(1)
    break

    elif userChoice == 2:
    subtractNumberA = int(raw_input(\"What is the first number you would like to subtract: \"))
    subtractNumberB = int(raw_input(\"What is the second number you would like to subtract: \"))
    subtractEquals = subtractNumberA - subtractNumberB
    print subtractEquals
    time.sleep(1)
    break

    elif userChoice == 3:
    multiplyNumberA = int(raw_input(\"What is the first number you would like to multiply: \"))
    multiplyNumberB = int(raw_input(\"What is the second number you would like to multiply: \"))
    multiplyEquals = multiplyNumberA * multiplyNumberB
    print multiplyEquals
    time.sleep(1)
    break

    elif userChoice == 4:
    divideNumberA = int(raw_input(\"What is the first number you would like to divide: \"))
    divideNumberB = int(raw_input(\"What is the second number you would like to divide: \"))
    divideEquals = divideNumberA / divideNumberB
    print divideEquals
    time.sleep(1)
    break

    else:
    print \"You have chosen an invalid option, goodbye\"
    time.sleep(1)
    break

    print \"There ya go and bye.\"
    time.sleep(1)



    Looks like a very nice calculator good job.
  • DizzY
    Posts: 155
    said:


    said:


    I'm learning python at the moment. :D

    Can you check of my calculator.


    #!/usr/bin/python
    import time
    print \"Welcome to DizzYs Calculator!\"
    time.sleep(2)
    print \"1) add\"
    print \"2) subtract\"
    print \"3) multiply\"
    print \"4) divide\"
    time.sleep(1)
    userChoice = int(raw_input(\"Enter a number as an option: \"))
    while True:
    if userChoice == 1:
    addNumberA = int(raw_input(\"What is the first number you would like to add: \"))
    addNumberB = int(raw_input(\"What is the second number you would like to add: \"))
    addEquals = addNumberA + addNumberB
    print addEquals
    time.sleep(1)
    break

    elif userChoice == 2:
    subtractNumberA = int(raw_input(\"What is the first number you would like to subtract: \"))
    subtractNumberB = int(raw_input(\"What is the second number you would like to subtract: \"))
    subtractEquals = subtractNumberA - subtractNumberB
    print subtractEquals
    time.sleep(1)
    break

    elif userChoice == 3:
    multiplyNumberA = int(raw_input(\"What is the first number you would like to multiply: \"))
    multiplyNumberB = int(raw_input(\"What is the second number you would like to multiply: \"))
    multiplyEquals = multiplyNumberA * multiplyNumberB
    print multiplyEquals
    time.sleep(1)
    break

    elif userChoice == 4:
    divideNumberA = int(raw_input(\"What is the first number you would like to divide: \"))
    divideNumberB = int(raw_input(\"What is the second number you would like to divide: \"))
    divideEquals = divideNumberA / divideNumberB
    print divideEquals
    time.sleep(1)
    break

    else:
    print \"You have chosen an invalid option, goodbye\"
    time.sleep(1)
    break

    print \"There ya go and bye.\"
    time.sleep(1)



    Looks like a very nice calculator good job.


    Thank you! :D
  • Xin
    Posts: 3,251
    Good job dizzy! :) i didnt expect that from you :P
    Xin
  • Bursihido
    Posts: 406
    good work dizy..keep it up :)
  • DizzY
    Posts: 155
    Thanks.

    I've pretty much forgot python now o.O
  • Xin
    Posts: 3,251
    If you can get a link to these ebooks chronic that would be great
    Xin