Reading Input From Command Line Using Sys Package | Python Tutorial in Tamil
Command line arguments (sys.argv)
They sys module in Python is one of many available modules of library code.
What is sys.argv?
sys.argv is the list of commandline arguments passed to the Python program. argv represents all the items that come along via the command line input, it's basically an array holding the command line arguments of our program. Don't forget that the counting starts at zero (0) not one (1).
How do I use it?
To use it, you will first have to import it (import sys) The first argument, sys.argv[0], is always the name of the program as it was invoked, and sys.argv[1] is the first argument you pass to the program. It's common that you slice the list to access the actual command line argument:
c tutorial link - • C Programming Tutorials in Tamil | Pa...
oops link - • Learn Object Oriented Programming in ...
html5 link - • 1# Introduction to HTML5 programming ...
css3 link - • PART-1 INTRODUCTION TO CSS3 AND ITS ...
javascript link - • PART-1 INTRODUCTION TO CSS3 AND ITS ...
python link • #1 - Python Tutorial in Tamil | Intro...
c tricks - • ADD TWO NUMBERS WITHOUT USING ARITHME...
c interview questions - • Find The Output Of the Program in Tamil
sample program - • HOW TO WRITE C PROGRAM FOR BASIC ADDI...
c++ program - • PART-01 INTRODUCTION TO C++ PROGRAMMI...
vb6 tutorial - • Visual Basic 6 Tutorial in Tamil
__
like our face book page..
/ santratechspot
--------------------------------------------------------------------------------
send request our channel official facebookprofile...
/ santra.techspot.5
---------------------------------------------------------------------------------
#santratechspot #python #tutorail