Computer Science, asked by eugenenoble30, 1 year ago

What are the two ways to enter Python Commands?

Answers

Answered by BrainlyFIRE
1
Let me first provide brief definition about these 1 by 1.

Command line argument: The arguments passed to an executing program is known as command line argument. In python, the first command line argument is the name of script followed by 1 or more passed ones.

raw_input() : This function is used to take input from keyboard. We can pass a message string to this function to display some message to user, but is not required if you already know the sequence of inputs to be entered. It takes input as a string. So in case of integer, floats etc. We need some type casting stuffs.

eugenenoble30: You're actually wrong. Its actually Interactive mode and Script mode. Sorry for wasting your time copy-pasting from the internet
eugenenoble30: Go get a B. Sc in Computer Science. Then you Talk okay?!
Answered by jeetk
3
python is this thing called a programming language. It takes text that you’ve written (usually referred to as code), turns it into instructions for your computer, and runs those instructions. We’ll be learning how to write code to do cool and useful stuff. No longer will you be bound to use others’ programs to do things with your computer - you can make your own!

Practically, Python is just another program on your computer. The first thing to learn is how to use and interact with it. There are in fact many ways to do this; the first one to learn is to interact with python’s interpreter, using your operating system’s (OS) console.

A console (or ‘terminal’, or ‘command prompt’) is a textualway to interact with your OS, just as the ‘desktop’, in conjunction with your mouse, is the graphical way to interact your system.

Similar questions