answersLogoWhite

0


Best Answer

As in any programming language use an "if" statement.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is there any way I can make Python 3.4.3 do one thing if a number is greater than 10 and another if it is less?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What does product of a number mean?

There is no such thing as the product of just one number, a product is when 2 or more numbers are multiplied. The product of a number and another number means the answer you get when you multiply the two.


How do you write the code by python?

it depends what type of program you wish to write. python is a very simple programing langauge therefore it doesnt have much room to play with. i mainly use it to work out simple math problems, or use it to calculate thing for games i play, Ex.) This is a program i wrote to work out the Pythagorean therom to find side "C": a = input("Enter Corner Side A\n ") b = input("Enter Corner Side B\n ") c = a*a+b*b import math print math.sqrt(c) raw_input("Press <enter> To Leave Program") input mean that's where you enter your variable, raw input is what you put at the end so it doesnt just run away (NOTE*** THIS IS A PYTHON 2.6.5 SCRIPT, IT WILL NOT WORK ON OTHER VERSIONS OF PYTHON" notice i put ("Press <enter> To Leave Program") this is what it will say before it "runs away". i suggest watching some youtube videos on how to write programs for your version of python. also try using the manual that comes with your version of python. it helps greatly.


What does this phase mean distinguished?

it means it is different from one thing to another


What is best programming language to learn first?

There is no single best language to learn first. A variety of languages could be proposed as a first language, and most of them have been. If you only want to do one thing, you can just start with the language you want to use for that purpose (JavaScript for web, Objective-C for iPhone apps, etc.). For learning to program, in general I think that Python is a good first language, as it is simple, powerful, and popular. Peter Norvig, Director of Research at Google, recommends Python or Scheme. Trevor Blackwell, a Silicon Valley entrepreneur, recommends Python. Eric Raymond, a noted programmer and open-source advocate, also recommends Python as a starting language. The idea behind recommending Python and similar languages is that the beginning programmer can spend more time thinking about what they actually want to accomplish, and less about the details of Java or C++ (e.g. "public static void main(String[] args)"). Also, despite being easy to learn, Python is a language that is actually used (by Google and NASA, for example).


How does integers work?

integers are any number number on a number line and do not have fractions or decimals. They could be any thing from -7 to 3 to 10000000000 or -3475848569. Welcome!

Related questions

Is python a noun?

The word python is a noun, a singular, common, concrete noun. A python is a thing, a snake.


When was Monty Python's Tiny Black Round Thing created?

Monty Python's Tiny Black Round Thing was created in 1974.


Is there such thing as a bull python?

The ball python is only one type of Python. As I don't know which other type of python you're asking me to compare the ball python with I can't really answer your question...


What does the math term exceed mean?

be greater in number or size than (a quantity, number, or other measurable thing)


Is there such a thing as a ballpoint python?

Nope. You should invent one!


What is word standing for greater idea?

greater idea = better idea A thing that has a greater thing, is called "better". A thing that has no greater, is called "best" or "superlative".


Which number is greater in deciomols?

There is no 'greatest'. You can name any number you want to, and no matter how big it is, I can always name a greater one. For the same kind of reason, there's no such thing as the 'smallest' one either.


Do children python sleep?

yes they do every thing sleep sometime.


What does greater mean?

The word greater has more than one meaning, depending upon context. In mathematics, a number is greater than another number if it is larger. For example, 5 is greater than 4. We could also use the term to describe human accomplishment. Abraham Lincoln was a greater President than Warren G. Harding, for example. Or, John Lennon was a greater musician than Lonny Donnigan. Any great thing can be compared to other great things. We could say that one office building is greater than another. This might mean that it is taller, but it might also mean that it is better designed or more important for some other reason.


Which symbol i may use to show one thing is greater than and another less than?

X>Y, Means X is greater than Y, Y>X Means Y is greater, Ok.


What is autonumber?

Automatically stores a number that is one greater than the last number used.


Can a negative number be greater than a positive number?

No. All positive numbers are greater than zero and all negative numbers are less than zero. Therefore, all positive numbers are greater than all negative numbers. That said, there is a such thing as absolute value, which is how far a number is from zero. For example the absolute value of -10 is 10. The absolute value of a negative number can be greater than that of a positive number.