Python the Programming Language
Python the Programming Language [15]
By
Subhasis Dutta
Email : sduttamail@gmail.com
Mob: 9434110862
Python is a Programming Language.
Python is an interpreted, high-level and general-purpose programming language. Python's design philosophy emphasizes code readability with its notable use of significant indentation. Its language constructs and object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects.
Q: How to RUN a Python file in IDE .
Ans. exec(open("test.py").read()) // File Name is test.py
#DAY 01
In the First Day we learn wring a simple program which show an output "My first python Program" . How to writing of program in file. How to Execute the file .
#My first Python Program.
# first.py
# This is my first Python Program
print( "This is my first Python Program" )
*# Write the above two line in a file named first.py
*# The Execute the file by any one method .
#1. In command prompt : type
> python -i first.py
#2. In IDE prompt : type
>>> exec(open("first.py").read())
#3. In IDE prompt : click
File -> open -> select file (first.py ) ->open-> Run ->Run Module.
#DAY 02
Problem : Write a program.
1. Take two number (Integer) dynamically.
2. Perform addition.
3. Show the result.
👌👍
ReplyDeleteThank you
Delete