Thanks for the response. Though, I don't fully understand how I would write it for my exact purpose.
Could you give me an example with the 'for loop' for what I'm trying to accomplish?
In Python 3...
I have a few lines of code that I want the user to choose how many times it will run. For example:
times=int(input())
'times' will be the number of times the lines of code will run.
How do I do it?
I was bored so I made this:
print("Object vs. Planck Length")
print("How long is the object in meters?")
obj = int(input())
result = obj - 0.000000000000000000000000000000000016162
print("1 Planck length is " + str(result) + " meters smaller than that object.")
Problem is that the decimal...
I'm too lazy to see the big picture. Here is an example to show you what I'm talking about:
[FONT=Courier New]x = str(input())
[FONT=Courier New]if x == "that's a nice meme sir":
print("thanks friend")
elif x == "crap meme stop posting anytime":
print("oh")
else[FONT=Courier New]...
What's the point of the elif statement? Why not just keep the if and else statements and leave it at that? Can't the if statement be replaced with just if? Thanks.
But what if you were seeing the cost of whatever like this for example 2x + 4 = 8
Another order of operations wouldn't work for solving x. Damn! why is it so difficult for my mind to comprehend this?
I have had this question bugging me for a while. I know how to use it, but why and how does it work? I heard it was for convention and you do the most complicated to the simplest operations to get the lowest terms but it still confuses me. Can anyone give me a clear and easy to understand...
I don't get DC. How do the electrons flow from one side to the other? Wouldn’t the electrons on both terminals just meet in the middle because of their attraction?