FPL 1 Lecture - Copy-1
FPL 1 Lecture - Copy-1
Department BSCS
Programming Fundamental
Semester 1st
Lab #1
Topic :Integrated Development Environment
Built-in library
An Integrated Development Environment (IDE) is a comprehensive software
suite that provides developers with tools to write, test, debug, and manage
code efficiently. The goal of an IDE is to simplify the software development
process by bringing all essential tools together in one place, making it easier
to create, modify, and maintain software projects
• Code Editor
• Purpose: The code editor is where developers write and edit their code.
• Features: Most code editors in an IDE offer features like:
– Syntax highlighting: Colors are applied to different elements of the code
(keywords, variables, functions) for easy readability.
– Autocomplete: Suggests completions for variables, methods, or function
names based on what has already been written.
– Code formatting: Some IDEs automatically format code according to
coding standards.
• Debugger
• Purpose: A tool that helps developers find and fix errors (bugs) in their code.
• Features:
– Breakpoints: Stop execution at certain points in the code to inspect the
program state.
– Step through code: Execute code one line at a time to observe how it behaves.
– Variable inspection: Examine the values of variables at different stages of
execution.
• Build Automation Tools
• Purpose: These tools help automate repetitive tasks like compiling the
code, running tests, or packaging the software for release.
• Examples: Tools like Maven for Java, Gradle, or Makefiles in C/C++ allow
for automated builds and dependency management.
• A Version Control Integration
• Purpose: Manage changes to your codebase and collaborate with other
developers.
• Features:
– Version tracking: Keep track of different versions of the code, making it easy
to revert to an earlier state if needed.
– Collaboration: Supports collaboration through platforms like Git, GitHub,
GitLab, and Bitbucket, where multiple developers can work on the same
project simultaneously.
• Testing Tools
• Purpose: Help ensure the software works as expected by running tests.
• Features:
– Unit testing: Test individual components or functions of the software.
– Integration testing: Test how different parts of the software work
together.
Project Management Tools :
• Purpose: Organize and manage the files and resources of a software project.
• Features:
– File explorer: Provides a visual structure of the project files and folders.
– Configuration management: Manage build configurations for different
environments (e.g., development, testing, production).
Advantages of Using an IDE:
• Efficiency: Having all tools in one place saves time and effort.
• Consistency: IDEs often enforce best practices, making your code more consistent.
• Debugging ease: Built-in tools make finding and fixing bugs much faster.
• Collaboration: Integrated version control makes working in teams more
streamlined.
• Disadvantages:
• Learning curve: Some IDEs have many features, which can be overwhelming for
beginners.
• Performance: Some full-featured IDEs can be resource-heavy, leading to slower
performance on less powerful machines.
Advantages of Using an IDE:
Efficiency: Having all tools in one place saves time and effort.
Consistency: IDEs often enforce best practices, making your code
more consistent.
Debugging ease: Built-in tools make finding and fixing bugs much
faster.
Collaboration: Integrated version control makes working in teams
more streamlined.
Disadvantages:
Learning curve: Some IDEs have many features, which can be
overwhelming for beginners.
Performance: Some full-featured IDEs can be resource-heavy,
leading to slower performance on less powerful machines
Creating a Python File
IDE/Editor: Open your preferred IDE (e.g., Visual Studio Code, PyCharm, or
Sublime Text).
Steps:
•Click on File -> New File.
•Write your Python code.
•Save the file with a .py extension, such as my_script.py
print("Hello, World!")
.
SUM
num1=int(input("Enter first number:")
num2=int (input ("Enter second number:")
sum=num1+num2
print("The sum is:",sum)