Customer Service Chat
Get quote & make Payment
Basic syntax of python language, Basic Computer Science
The Python language has a lot of similarities to Perl, C and Java. Though, there are some specific differences between the languages.
First Python Program:
relative Mode Programming:
Calling up the interpreter exclusive of passing a script file as a parameter brings up the following on time:
Python 2.5 (r25:51908, Nov 6 2007, 16:54:01)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-27)] on linux2
Type "help", "copyright", "credits" or "license" for more info.
The following text you have to type to the right of the Python prompt and push the Enter key:
>>> print "Hello, Python!";
This will generate following result:
Script Mode Programming:
Calling up the interpreter by a script parameter starts execution of the script and continues until the script is ended. When the script is ended, the interpreter is no longer active.
Let us write a easy Python program in a script. All python files will have conservatory .So place the following source code in a test.py file.
print "Hello, Python!";
Here we implicit that you have Python interpreter available in /usr/bin directory. Now attempt to run this program as follows:
$ chmod +x test.py # This is to make file executable
$ python test.py
This will generate following outcome:
Posted Date: 5/4/2012 9:24:50 AM | Location : United States
Ask an Expert
Basic syntax of python language, Assignment Help, Ask Question on Basic syntax of python language, Get Answer, Expert's Help, Basic syntax of python language Discussions
Write discussion on Basic syntax of python language
Your posts are moderated
Write your message here..
Wap and wml, what is charactersics of mobile computing
what is charactersics of mobile computing
What are the commonly used input/output functions in c, Problem 1 What ...
Problem 1 What is the significance of the keyword 'extern' in a function declaration? Explanation of significance of Keyword 'extern' in function declaration Probl
Java, what is meant by deliverable in strus base applications
what is meant by deliverable in strus base applications
Finding average marks, Problem In the Excel sheet, input the marks of a...
Problem In the Excel sheet, input the marks of any 5 students with 5 subjects and find the average marks, maximum marks, minimum marks obtained by the student. Using Excel s
Greedy search-artificial intelligence, Greedy Search-artificial intelligenc...
Greedy Search-artificial intelligence: If we have a heuristic function for states, as defined above, then we may simply measure each state with respect to this measure an
Random reading and writing and Closing a fcb file, The 21H function and the...
The 21H function and the 22H function of the 21H interruption are the ones in charge of realizing the random readings and writings in that order. The random register number and the
Mr, Please what is the different between computer science and information t...
Please what is the different between computer science and information technology? Which of this require too much reading? Thanks
What technical challenges must be overcome, QUESTION a) Clearly explain...
QUESTION a) Clearly explain three main issues arising in the design of components for use in Intranets. b) Explain the term "location-aware Computing". c) The Internet en
One dimensional array, One dimensional array: A one-dimensional arra...
One dimensional array: A one-dimensional array is a structured collection of elements that can be accessed individually by specifying the position of a component with ind
Computer organization, what is integrated memory circut
what is integrated memory circut
Accounting Assignment Help
Economics Assignment Help
Finance Assignment Help
Statistics Assignment Help
Physics Assignment Help
Chemistry Assignment Help
Math Assignment Help
Biology Assignment Help
English Assignment Help
Management Assignment Help
Engineering Assignment Help
Programming Assignment Help
Computer Science Assignment Help
IT Courses and Help
Why Us ?
~24x7 hrs Support
~Quality of Work
~Time on Delivery
~Privacy of Work
Human Resource Management
Literature Review Writing Help
Follow Us |
T & C
Copyright by ExpertsMind IT Educational Pvt. Ltd.