Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

question

  1. N

    Java Scanner vs BufferedReader?

    I know both Scanner and BufferedReader in Java. However, although Scanner is easier to get user input (e.g. already converts user's input to a specific data type), and is shorter to initialize, I was taught to use BufferedReader. Is there a benefit to using BufferedReader as compared to...
  2. X

    Question

    Hello all, I am a complete noob in coding but i have recently heard a friend talking about automating his repetitive tasks. For example, i often receive documents on my email address and instead of dragging and dropping to a folder i would like to automate this. What coding language would be...
  3. S

    Python Why doesn't this output "three" as well?

    I am wondering why this only outputs "one" and "two" but not three since elif statements condition is met. Thank you in advance :) x = 1 y = 1.0 z = "1" if x == y: print("one") if y == int(z): print("two") elif x == y: print("three") else: print("four")
  4. MacaroniChez

    Python I'm trying to add a square root feature to a calculator I made, but I keep getting errors.

    In python, I made a very decent calculator that has addition, subtraction, multiplication, and division. Today, I decided that I'm gonna expand on it and add square roots. The first thing I did was Google for how to use square roots on python. It told me that I have to import in math. After...
Back
Top Bottom