Introduction to Spyder - Part 1

NPTEL-NOC IITM
23 Aug 201910:08

Summary

TLDRThis video script offers a detailed tutorial on using the Spider interface for Python programming. It guides viewers through setting up the working directory, creating and saving Python files, and navigating the interface's three main panels: the script explorer, the variable explorer, and the console. The script also explains the significance of variables, how to assign values, and the use of the print statement to output results. The tutorial is designed to help beginners understand the basics of coding in Python using Spider.

Takeaways

  • 😀 The tutorial introduces the user to the Spider interface, explaining its features and how to navigate it.
  • 🔧 The video explains how to set up the working directory in Spider, which is essential for organizing and managing Python files.
  • 📁 It demonstrates how to create a new Python file in Spider and the steps to save it properly.
  • 🖥️ The interface is divided into three main sections: the script window, the file explorer, and the variable explorer.
  • 🔑 The script window is where all the code and commands are written and executed.
  • 📂 The file explorer displays all the files in the current working directory, allowing users to navigate through directories.
  • 📊 The variable explorer shows all the objects and variables used in the code, along with their names, types, and sizes.
  • 💬 The console is the output window where the results of the executed code and any print statements are displayed.
  • 🛠️ The video mentions that while you can type and execute commands in the script window, the console has the limitation that it cannot be saved.
  • 🔄 The working directory can be set in three ways: using an icon, using the 'os' library, or by using the 'cd' command.
  • 📝 The tutorial concludes by summarizing the key points about navigating the Spider interface, setting the working directory, and creating and saving Python script files.

Q & A

  • What is the main topic of the lecture?

    -The main topic of the lecture is an introduction to the Spider interface, including how to set up the working directory and create and save Python files.

  • What version of Python is being used in the lecture?

    -The lecture is using Python version 3.6.

  • How is the interface of Spider divided?

    -The interface of Spider is divided into three main sections: the script window, the file explorer, and the variable explorer.

  • What can be seen in the file explorer?

    -In the file explorer, you can see all the files in your current working directory after setting it up.

  • What is displayed in the variable explorer?

    -The variable explorer displays all the variables and objects used in your code, along with their names, types, and sizes.

  • How can you create a new Python file in Spider?

    -You can create a new Python file in Spider by clicking on the 'New Script' icon in the toolbar or by selecting 'New File' from the File menu.

  • What is the purpose of the console in Spider?

    -The console in Spider is used to display the output of your code, including print statements and results, and to perform basic operations.

  • How can you set the working directory in Spider?

    -You can set the working directory in Spider using three methods: by using the icon, by using the 'os' library, or by using the 'cd' command.

  • What is the significance of saving a Python script in Spider?

    -Saving a Python script in Spider allows you to preserve your code and work on it later or run it as a standalone script.

  • What are the different ways to save a file in Spider?

    -There are three ways to save a file in Spider: 'Save' to save the current changes, 'Save All' to save changes in all open files, and 'Save As' to save the file with a new name or location.

  • What is the extension used for Python script files in Spider?

    -The extension used for Python script files in Spider is '.py'.

Outlines

00:00

🕷️ Introduction to Spider Interface and Python Script Basics

This paragraph introduces the audience to the Spider interface, explaining how to navigate it, set up the working directory, and create and save Python files. It begins with a snapshot of the Spider screen after it has been launched, showcasing the interface's layout, including the script window and the console. The speaker uses Python version 3.6 for the demonstration and explains the significance of each section within the interface, such as the script window, the file explorer, and the variable explorer. The paragraph also covers how to save the script and the importance of the working directory, offering a brief overview of how to use the interface effectively.

05:00

📁 Setting the Working Directory and File Management

The second paragraph delves into the methods of setting the working directory in Spider, which is crucial for file management and script execution. It outlines three different approaches: using the icon in the interface, utilizing the 'os' library to change the directory programmatically, and using the command line command 'cd'. The paragraph explains how to use the 'os' library's 'chdir' function to change the directory and how to navigate through the file explorer to view and interact with files and folders. It also discusses the display of files in the file explorer and how to create new folders or files for organizing scripts and data.

10:01

🛠️ Creating and Saving Python Scripts in Spider

In this paragraph, the focus shifts to creating and saving Python scripts within the Spider interface. It describes the process of initiating a new script file through the toolbar icon or the 'File' menu, and the use of keyboard shortcuts for efficiency. The paragraph highlights the importance of variables in Python, explaining their role as identifiers that store information. It provides examples of assigning values to variables and using the assignment operator. The speaker also discusses the use of the 'print' statement to output results to the console. The paragraph concludes with instructions on how to save the script file, including choosing a name and directory for the file, and the various options available in the 'File' menu for saving changes or creating new files.

Mindmap

Keywords

💡Spider

In the context of the script, 'Spider' refers to a Python development environment known as 'Spider IDE'. It is an interface for writing and running Python scripts. The video discusses how to navigate and utilize this interface, including setting up the working directory and creating Python files.

💡Interface

The 'interface' in the script refers to the graphical user interface of the Spider IDE. It is the part of the software that allows users to interact with the system, showcasing different panels and tools for script writing and execution.

💡Working Directory

The 'working directory' is a key concept in programming that represents the current directory where the user is operating from. The script explains how to set the working directory in Spider IDE, which is essential for file management and script execution within the correct context.

💡Python

Python is the programming language that the script focuses on. It is a high-level, interpreted language known for its readability and wide usage in various domains. The video mentions the creation and saving of Python files within the Spider IDE environment.

💡Script

A 'script' in this context refers to a Python file that contains code written by the user. The script discusses the process of creating, writing, and saving these scripts within the Spider IDE, as well as the components of the interface that display the code.

💡File Explorer

The 'File Explorer' mentioned in the script is a part of the Spider IDE interface that allows users to browse and manage files and directories within their project. It is crucial for navigating to the correct working directory and managing script files.

💡Variable Explorer

The 'Variable Explorer' is a feature within the Spider IDE that displays all the variables and their values used in the code. It helps in understanding and debugging the script by providing a clear view of the data types and values of variables.

💡Console

The 'Console' in the script is the output window in Spider IDE where the results of script execution are displayed. It is where users can see the print statements and any errors that occur during the running of their scripts.

💡Save

The action of 'saving' in the script refers to the process of writing the Python script to a file so that it can be stored and executed later. The video explains the different options available in Spider IDE for saving files, such as 'Save', 'Save All', and 'Save As'.

💡Assignment Operator

The 'assignment operator' is used in Python to assign a value to a variable. In the script, it is denoted by the equal sign (=), and the video demonstrates how to use it to store values in variables within the script.

💡Print Statement

A 'print statement' in Python is used to output data to the console. The script explains how to use the print function to display the results of calculations or values of variables within the Python scripts written in Spider IDE.

Highlights

Introduction to the Spider interface and its setup process.

Explanation of how to set the working directory and create a Python file.

Overview of the Spider interface with three main sections.

Description of the scripting window and how to navigate through the code.

Functionality of the file explorer and variable explorer.

How to view and manage files and variables within the working directory.

Details on the console as an output window for commands and results.

The inability to save the console output but the ability to save script outputs.

Different methods to set the working directory using icons, libraries, and command line.

Using the OS library to change the directory with the chdir function.

Explanation of how to create a new Python script file using the interface.

Options to save a script file with different methods like Save, Save All, and Save As.

The process of naming and saving a new Python script file with the .py extension.

Introduction to variables as identifiers that hold specific values.

Demonstration of variable assignment and arithmetic operations in Python.

How to print outputs using the print statement in Python.

The importance of naming conventions for variables in coding.

A summary of the lecture on using the Spider interface, setting the working directory, and creating and saving Python scripts.

Transcripts

play00:08

స్పైడర్ పరిచయం అనే ఉపన్యాసానికి స్వాగతం,

play00:13

ఈ ఉపన్యాసంలో మనం ముందుకు వెళ్తున్నాం.

play00:17

స్పైడర్ యొక్క ఇంటర్ఫేస్ ఎలా ఉంటుందో చూడటానికి?

play00:22

వర్కింగ్ డైరెక్టరీని ఎలా సెట్ చేయాలి

play00:26

మరియు పైథాన్ ఫైలును ఎలా సృష్టించాలి

play00:30

మరియు సేవ్ చేయాలి?

play00:33

కాబట్టి, స్పైడర్‌ ఎలా కనిపిస్తాడో

play00:36

చూద్దాం.

play00:37

చూడండి.

play00:38

కాబట్టి, నా ఎడమ వైపున మీరు స్పైడర్ తెరిచిన

play00:43

తర్వాత కనిపించే స్క్రీన్ యొక్క స్నాప్షాట్ను

play00:48

చూడవచ్చు.

play00:49

కాబట్టి, ఈ ఉపన్యాసాన్ని వివరించడానికి నేను

play00:53

ఉపయోగిస్తున్న పైథాన్ వెర్షన్ వెర్షన్

play00:56

3.6. కాబట్టి, మీరు తెరిచిన తర్వాత మీకు రచయిత

play01:00

పేరు మరియు ఫైల్ క్రియేటెడ్‌.

play01:03

అయినప్పుడు ఒక చిన్న వివరణ లభిస్తుంది.

play01:07

ఇక్కడ కొన్ని కిటికీలు ఉన్నాయి కాబట్టి

play01:11

ఈ కిటికీల్లో ప్రతి ఒక్కటి అర్థం ఏమిటో

play01:15

చూద్దాం.

play01:16

కాబట్టి, మొత్తం ఇంటర్ఫేస్ మూడు కిటికీలుగా

play01:20

విభజించబడింది, నా ఎడమ వైపున ఉన్న విండో

play01:24

స్క్రిప్టింగ్ విండోకు కాల్ చేయండి మరియు

play01:28

మీరు వెళ్ళే కోడ్లు మరియు ఆదేశాల యొక్క

play01:32

మీ అన్ని పంక్తులు రకం ఇక్కడ ప్రదర్శించబడుతుంది.

play01:37

కాబట్టి, మీరు మీ ఆదేశాలు మరియు కోడ్లన్నింటినీ

play01:41

నా మీద ఇక్కడ వ్రాయాలి.

play01:44

కుడివైపు నాకు రెండు కిటికీలు ఉన్నాయి,

play01:48

ఎగువ విభాగంలో మీరు 'అని చదివే ట్యాబ్లను

play01:52

కనుగొంటారు ఫైల్ ఎక్స్ప్లోరర్, హెల్ప్

play01:55

మరియు వేరియబుల్ ఎక్స్ప్లోరర్.

play01:57

ఇప్పుడు ఫైల్ ఎక్స్ప్లోరర్ క్రింద మీరు సెట్

play02:02

చేసిన తర్వాత డైరెక్టరీ మీ ప్రస్తుత వర్కింగ్

play02:06

డైరెక్టరీలో ఉన్న ఏవైనా ఫైల్లు ఉంటే,

play02:10

అవన్నీ ఫైల్లు ఫైల్ ఎక్స్ప్లోరర్ క్రింద

play02:14

'వేరియబుల్ ఎక్స్ప్లోరర్' కింద ప్రదర్శించబడతాయి,

play02:17

మీరు ప్రాథమికంగా ఒక 'వేరియబుల్ ఎక్స్ప్లోరర్'

play02:20

కలిగి ఉంటారు.

play02:22

మీరు మీ కోడ్లో ఉపయోగించిన అన్ని వస్తువులు

play02:26

మరియు చరరాశులను ప్రదర్శించండి.

play02:28

ఇప్పుడు, & nbsp; & nbsp; తో పాటు మీకు వాటి పేరు,

play02:34

రకం మరియు size.&nbsp కూడా ఉన్నాయి; ఇప్పుడు,

play02:39

పేరు అనేది చరరాశి పేరు, రకం అనేది & nbsp;

play02:45

& nbsp; డేటా రకం మరియు పరిమాణం అంటే అది

play02:50

ఒక శ్రేణి లేదా ఒకే విలువ.

play02:54

ఇప్పుడు, మొదటి కొన్ని విలువలు ఉంటాయి ఇది

play02:59

ఒకే విలువ అయితే ప్రదర్శించబడుతుంది,

play03:03

అప్పుడు ఒకే విలువ శీర్షిక క్రింద ప్రదర్శించబడుతుంది

play03:08

దిగువన ఉన్న విభాగాన్ని కన్సోల్గా పరిగణించండి.

play03:12

కాబట్టి, కన్సోల్ అనేది మీరు చేయగల

play03:16

అవుట్పుట్ విండో.

play03:17

మీ ముద్రించిన ప్రకటనలు మరియు ఫలితాలన్నింటినీ

play03:21

చూస్తూ, మీరు ప్రాథమిక కార్యకలాపాలను కూడా

play03:26

చేయవచ్చు మీ కన్సోల్, కానీ ఒకే ఒక ప్రతికూలత

play03:31

ఏమిటంటే మీరు దానిని సేవ్ చేయలేరు.

play03:35

అయితే ఇప్పుడు, మీరు స్క్రిప్టింగ్ విండోలో

play03:39

ఏది టైప్ చేసినా దానిని ఎల్లప్పుడూ

play03:44

సేవ్ చేయవచ్చు.

play03:45

మీరు మీ స్క్రిప్టింగ్ విండోలో ఉపయోగించిన

play03:49

ఆదేశాల పంక్తులను ఎలా సేవ్ చేయాలో

play03:53

చూడండి మరియు ఉపన్యాసం కొనసాగిన తర్వాత

play03:57

మనము దానిని చేస్తాము.

play04:00

ఇప్పుడు, వర్కింగ్ డైరెక్టరీని ఎలా

play04:03

సెట్ చేయాలో చూద్దాం, పని చేసే డైరెక్టరీని

play04:08

సెట్ చేయడానికి మూడు మార్గాలు ఉన్నాయి;

play04:12

మొదటిది ఐకాన్ను ఉపయోగించడం, రెండవది

play04:15

ఉపయోగించడం.

play04:16

అంతర్నిర్మిత లైబ్రరీ OS మరియు మూడవది కమాండ్

play04:21

cd ని ఉపయోగిస్తోంది, అంటే డైరెక్టరీని

play04:23

మార్చండి.

play04:24

ఇప్పుడు, ఐకాన్ ఉపయోగించి వర్కింగ్ డైరెక్టరీని

play04:26

ఎలా సెట్ చేయాలో చూద్దాం.

play04:28

మీరు పై విభాగాన్ని చూస్తే , ఇక్కడ మీరు

play04:30

ఫోల్డర్ తెరిచి ఉన్న ఐకాన్ను చూస్తారు,

play04:32

ఇప్పుడు మీరు పని చేసే డైరెక్టరీని

play04:34

ఎంచుకోవచ్చు ఈ ఐకాన్ పై క్లిక్ చేయడం

play04:37

ద్వారా.

play04:38

మీరు ఎంచుకున్న తర్వాత మీరు ఒక స్థానం లేదా

play04:40

ఫోల్డర్ను ఎంచుకోమని ప్రాంప్ట్ చేయబడతారు.

play04:42

ఇప్పుడు, & nbsp; & న్బ్స్ప్‌; ఐకాన్ పై క్లిక్

play04:44

చేయడం ద్వారా మరియు ఒకసారి మీరు తగిన

play04:47

ఫోల్డర్ లేదా తగిన స్థానాన్ని ఎంచుకోవచ్చు.

play04:49

మీ డైరెక్టరీని సెట్ చేయడానికి పరిగణించబడే

play04:51

ప్రదేశంపై క్లిక్ చేయండి.

play04:52

ఇప్పుడు ఇది సులభమైన పద్ధతి మరియు మీరు

play04:55

అయితే ప్రతిసారీ ఆదేశాలను టైప్ చేయాలనుకోవడం

play04:57

లేదు, అప్పుడు మీరు డ్రాగ్ అండ్ డ్రాప్

play05:00

చేయవచ్చు.

play05:01

& న్బ్స్ప్‌; ఇప్పుడు, రెండవ మరియు మూడవ

play05:02

పద్ధతులను చూద్దాం, ఇప్పుడు మీరు లైబ్రరీని

play05:04

దిగుమతి చేసుకోవాలి.

play05:05

os అని పిలువబడే, os అంటే ఆపరేటింగ్ సిస్టమ్స్‌.

play05:08

డైరెక్టరీని మార్చడానికి ముందు మీరు దానిని

play05:13

దిగుమతి చేసుకోవాలి.

play05:15

కాబట్టి, దిగుమతి అనేది మీరు చేసే

play05:19

ఒక ఫంక్షన్.

play05:21

మీ పరిసరాలకు లైబ్రరీని లోడ్ చేయడానికి ఉపయోగించండి.

play05:27

ఇప్పుడు, మీరు మీ లైబ్రరీ OS ని లోడ్

play05:33

చేసిన తర్వాత ఎన్విరాన్మెంట్ లో మీరు chdir ఫంక్షన్

play05:40

ను ఉపయోగించవచ్చు, అంటే డైరెక్టరీని

play05:45

మార్చండి.

play05:46

కాబట్టి, ఈ సందర్భంలో OS అయిన లైబ్రరీ పేరును

play05:51

ఉపయోగించండి, తరువాత ఒక చుక్కను ఉపయోగించండి,

play05:53

ఆపై chdir ని ఉపయోగించండి.

play05:55

ఇప్పుడు, కుండలీకరణంలో మనము ఒకే లేదా డబుల్

play05:57

కోట్స్ ఇవ్వవచ్చు.

play05:58

కాబట్టి, మీ నుండి మొత్తం మార్గాన్ని

play06:00

కాపీ చేయండి.

play06:01

డైరెక్టరీ చేసి, ఆపై దానిని ఇక్కడ

play06:02

అతికించండి లేదా మీరు దానిని టైప్

play06:04

కూడా చేయవచ్చు.

play06:05

మూడవ పద్ధతి కమాండ్ను ఉపయోగించడం.

play06:07

cd, cd అంటే డైరెక్టరీని మార్చండి అని కూడా

play06:09

అర్థం మరియు మీరు కమాండ్ తర్వాత ఖాళీ

play06:12

ఇవ్వవచ్చు, ఆపై ఇవ్వవచ్చు మార్గం.

play06:13

కాబట్టి, ఈ విధంగా మీరు వర్కింగ్ డైరెక్టరీని

play06:16

సెట్ చేస్తారు.

play06:17

ఇప్పుడు, ఒకసారి మీరు వర్కింగ్ డైరెక్టరీని

play06:19

సెట్ చేసినట్లయితే పని చేసే డైరెక్టరీ

play06:21

లోపల ఏదైనా ఫోల్డర్లు లేదా ఏదైనా ఉప ఫోల్డర్లు

play06:24

లేదా ఏదైనా ఇతర ఫైల్లు ఉండండి, అవన్నీ ఫైల్

play06:26

ఎక్స్ప్లోరర్‌.

play06:27

కింద ప్రదర్శించబడతాయి; నాకు దీని కింద కొన్ని

play06:29

ఫైళ్లు ఉన్నాయి డైరెక్టరీ మరియు అందువల్ల ఇది

play06:32

నా కోసం ఇక్కడ ప్రదర్శించబడుతోంది.

play06:33

కానీ వాస్తవానికి, మీరు కొత్తదాన్ని

play06:35

తెరుస్తుంటే మీరు ఈ స్థలాన్ని ఖాళీగా

play06:37

చూసే ఫోల్డర్ ఇప్పుడు మీరు మీ అన్ని ఫైళ్ళను

play06:40

మరియు ఉప ఫైళ్ళను తనిఖీ చేయవచ్చు మరియు

play06:42

ఇక్కడ ఫైల్ ఎక్స్ప్లోరర్ క్రింద ఉన్న సబ్

play06:45

డైరెక్టరీలు.

play06:46

కాబట్టి, పని చేసే డైరెక్టరీని ఎలా

play06:47

సెట్ చేయాలో చూశాము, ఇప్పుడు ఒక ఫైలును

play06:50

ఎలా సృష్టించాలో చూద్దాం.

play06:51

కాబట్టి, దాని గురించి వెళ్ళడానికి రెండు

play06:53

మార్గాలు ఉన్నాయి, మొదటిది క్లిక్ చేయడం.

play06:55

కుడివైపున ముడుచుకున్న పేజీలా కనిపించే

play06:57

ఐకాన్.

play06:58

ఇప్పుడు, మీరు దీన్ని టూల్బార్లో కనుగొనవచ్చు.

play06:59

కాబట్టి, మీ ఎడమ వైపున ఉన్న ఐకాన్ బార్లో

play07:02

మీరు కుడి వైపున ముడుచుకున్న పేజీని

play07:04

చూస్తారు, ఇప్పుడు మీరు దానిపై క్లిక్

play07:06

చేస్తే కొత్త స్క్రిప్ట్ ఫైల్ తెరవబడుతుంది.

play07:08

నేను మీకు జూమ్ చేసిన సంస్కరణను కూడా చూపించాను

play07:11

ఐకాన్, కాబట్టి ఇది ఇలా కనిపిస్తుంది,

play07:13

మీరు దానిపై క్లిక్ చేసిన క్షణం కొత్త

play07:15

స్క్రిప్ట్ ఫైల్ పాపప్ అవుతుంది.

play07:17

ఇప్పుడు, రెండవ పద్ధతి ఫైల్ మెనూపై క్లిక్

play07:20

చేసి, ఆపై కొత్త ఫైల్ను ఎంచుకోవడం.

play07:22

కాబట్టి, మీరు ఇక్కడ ఫైల్ మెనూను చూడవచ్చు,

play07:24

ఆపై కొత్త ఫైల్పై క్లిక్ చేయండి.

play07:26

ఇప్పుడు, ఈ రెండింటిని మినహాయించి నియంత్రణ

play07:28

ప్లస్ ఎన్, కీబోర్డ్ సత్వరమార్గాన్ని

play07:30

ఉపయోగించడానికి మీకు ఎల్లప్పుడూ

play07:31

ఫాల్బ్యాక్ ఎంపిక ఉంటుంది.

play07:32

ఈ మూడు పద్ధతులలో వెంటనే మీ కోసం స్క్రిప్ట్

play07:35

ఫైల్ను తెరవండి.

play07:36

ఇప్పుడు, మేము సెట్ చేసాము.

play07:37

వర్కింగ్ డైరెక్టరీలో మనము ఒక స్క్రిప్ట్

play07:39

ఫైల్‌.

play07:40

ను సృష్టించాము; కాబట్టి, ఇప్పుడు

play07:42

మనకు ముందు కొన్ని కోడ్ ముక్కలను టైప్

play07:44

చేద్దాం.

play07:45

మన స్క్రిప్ట్ ఫైల్ను సేవ్ చేయండి, కానీ

play07:47

మనం అక్కడికి వెళ్ళే ముందు కూడా వేరియబుల్

play07:49

అంటే ఏమిటో చూద్దాం.

play07:51

కాబట్టి, వేరియబుల్ అనేది తెలిసిన సమాచారాన్ని

play07:53

కలిగి ఉన్న ఐడెంటిఫైయర్, విలువగా సూచించబడే

play07:55

ఐడెంటిఫైయర్లో ఉన్న తెలిసిన సమాచారం.

play07:56

కాబట్టి, & nbsp; & nbsp; ఒక చరరాశి పేరు వాస్తవానికి

play07:59

మెమరీ చిరునామా లేదా నిల్వ స్థానాన్ని

play08:01

సూచిస్తుంది, ఆపై ఇది నిల్వ చేయబడిన

play08:03

విలువను సూచించడానికి స్థానం వాస్తవానికి

play08:05

ఉపయోగించబడుతుంది.

play08:06

కాబట్టి, వేరియబుల్ పేరు వివరణాత్మకంగా

play08:07

ఉండవచ్చు.

play08:08

లేదా ఒకే అక్షరాలను కూడా కలిగి ఉండవచ్చు.

play08:10

కాబట్టి, మేము నామకరణ సంప్రదాయాలను పరిశీలిస్తాము

play08:12

రాబోయే ఉపన్యాసాలలో ఒక చరరాశికి పేరు

play08:14

పెట్టండి.

play08:15

కాబట్టి, ముందుకు వెళ్లి కొన్ని చరరాశులను

play08:16

సృష్టించుకుందాం, ఇప్పుడు మీరు ఇక్కడ

play08:18

నా ఎడమ వైపున కోడ్ యొక్క స్నాప్షాట్ను

play08:20

చూస్తారు, నేను కోడ్ లైన్లలో జూమ్ చేసాను

play08:23

నా హక్కు.

play08:24

కాబట్టి, నేను మళ్ళీ జూమ్ ఇన్ చేసి మీకు

play08:26

చూపిస్తాను, ఇప్పుడు నేను a కి 11 విలువను

play08:29

కేటాయిస్తున్నాను.

play08:30

పైథాన్లో మీరు విలువను కేటాయించడానికి

play08:31

ఉపయోగించే అసైన్మెంట్ ఆపరేటర్ సమానం.

play08:33

కాబట్టి, నేను a లో 11 విలువను నిల్వ చేస్తున్నాను,

play08:35

a అనేది నా చరరాశి పేరు మరియు b అనేది

play08:41

8 సార్లు 10 కి సమానం అని నేను చెప్తున్నాను.

play08:46

కాబట్టి, ఇది గుణకారం మరియు పైథాన్లోని

play08:49

గుణకారం ఆపరేటర్ను సూచిస్తారు నక్షత్రం

play08:52

వలె.

play08:53

కాబట్టి, ఒకసారి నేను నా చరరాశులు

play08:55

రెండింటినీ సృష్టించిన తర్వాత, నేను a మరియు

play08:59

b విలువలను ముద్రించాలనుకుంటున్నాను.

play09:00

ఇప్పుడు నేను రెండు విలువలను కలిసి ముద్రించాలనుకుంటున్నాను;

play09:01

నేను వాటిని లోపల కామాతో వేరు చేయబోతున్నాను

play09:02

ముద్రణ ప్రకటన.

play09:03

కాబట్టి, ప్రింట్ స్టేట్మెంట్ అవుట్పుట్ను

play09:04

ప్రింట్ చేయడానికి నాకు సహాయపడుతుంది

play09:05

మరియు నేను.

play09:06

ఇక్కడ రెండు అవుట్పుట్లను ముద్రించాలనుకుంటున్నాను,

play09:07

నేను వాటిని కామాతో వేరు చేయబోతున్నాను.

play09:08

అయితే, మీరు కేవలం ఒక ప్రకటనను ముద్రించాలనుకుంటే,

play09:09

మీరు కుండలీకరణాల లోపల ఒకే ఒక వస్తువును

play09:10

ఇవ్వవచ్చు.

play09:11

కాబట్టి, ఇప్పుడు ముందుకు వెళ్లి మన

play09:12

స్క్రిప్ట్ ఫైళ్ళను సేవ్ చేద్దాం.

play09:13

కాబట్టి, మీ స్క్రిప్ట్ ఫైల్ను సేవ్ చేయడానికి

play09:14

మీరు చేయవచ్చు.

play09:15

ఫైల్ మెనూపై మళ్లీ క్లిక్ చేస్తే, ఇక్కడ

play09:16

మూడు వేర్వేరు ఎంపికలు ఉన్నాయని మీరు చూడవచ్చు.

play09:17

కాబట్టి, మీకు ఎంపికల జాబితాను చూపించడానికి

play09:18

నేను కొంచెం జూమ్ చేయబోతున్న ఈ ఎంపికలు

play09:19

ఏమిటో చూద్దాం.

play09:20

అది మీకు ఉంది.

play09:21

కాబట్టి, మొదటి ఎంపిక సేవ్, ఇది కంట్రోల్

play09:22

ప్లస్ ఎస్ గా సూచించబడుతుంది.

play09:23

మీ కీబోర్డ్ సత్వరమార్గం.

play09:24

ఇప్పుడు, మీరు ఇప్పటికే ఒక ఫైల్ను కలిగి

play09:25

ఉంటే, మీరు దానిలో కొన్ని మార్పులు

play09:26

చేస్తున్నట్లయితే, అప్పుడు మీరు చేసిన

play09:27

మార్పులను సేవ్ చేయాలనుకుంటే, మీరు సేవ్ పై క్లిక్

play09:28

చేయవచ్చు.

play09:29

ఇప్పుడు మీరు బహుళ ఫైళ్ళలో మార్పులు

play09:30

చేస్తున్నట్లయితే.

play09:31

కాబట్టి, ఇప్పుడు, మీరు బహుళ ఫైళ్ళను

play09:32

తెరిస్తే మరియు వాటన్నింటిలో మార్పులు చేస్తే,

play09:33

మీరు అన్నింటినీ సేవ్ చేసే ఎంపికను

play09:34

ఉపయోగించవచ్చు.

play09:35

కాబట్టి, అన్నింటినీ సేవ్ చేయడం అంటే

play09:36

ఇది తెరిచిన అన్ని ఫైళ్ళలో చేసిన అన్ని

play09:37

మార్పులను సేవ్ చేస్తుంది.

play09:38

కాబట్టి, ఇది సేవాల్‌ యొక్క ఉపయోగం.

play09:39

అన్నింటినీ సేవ్ చేయండి.

play09:40

కాబట్టి, మీరు కొత్త ఫైల్ను సృష్టిస్తున్నట్లయితే,

play09:41

ఇప్పుడు మూడవ ఎంపికను 'సేవ్ ఆస్' అని పిలుస్తారు.

play09:42

మరియు మీరు దాని పేరు మార్చాలని మరియు

play09:43

దానిని సేవ్ చేయాలనుకుంటున్నారు, అప్పుడు మీరు సేవ్

play09:44

గా ఉపయోగిస్తున్నారు.

play09:45

కాబట్టి, ఎలా చేయాలో చూద్దాం.

play09:46

మొదటిసారిగా కొత్త స్క్రిప్ట్ ఫైల్ను

play09:47

సేవ్ చేయండి.

play09:48

కాబట్టి, మీరు సేవ్ పై క్లిక్ చేసిన

play09:49

తర్వాత అది ప్రాంప్ట్ అవుతుంది మీరు ఫైల్కు

play09:50

ఒక పేరు ఇవ్వాలి.

play09:51

ఇప్పుడు, మీకు ఎక్కడ కావాలో ఇక్కడ మీ

play09:52

డైరెక్టరీని ఎంచుకోవచ్చు.

play09:53

దానిని సేవ్ చేయడానికి లేదా మీరు ఇప్పటికే

play09:54

మీ పని డైరెక్టరీలో ఉంటే, మీరు అక్కడికి

play09:55

వెళ్లి సేవ్ చేయవచ్చు.

play09:56

కాబట్టి, .py అనేది పైథాన్ స్క్రిప్ట్

play09:57

ఫైల్ను సేవ్ చేయడానికి ఉపయోగించే పొడిగింపు.

play09:58

ఇప్పుడు మీరు ఇలా చేసిన తర్వాత మీరు

play09:59

చేయవచ్చు.

play10:00

సేవ్ పై క్లిక్ చేస్తే మీ ఫైల్ సేవ్ అవుతుంది.

play10:01

కాబట్టి, ఈ ఉపన్యాసంలో సంగ్రహంగా చెప్పాలంటే

play10:02

ఎలా అని చూశాము.

play10:03

స్పైడర్ ఇంటర్ఫేస్ కనిపిస్తుంది, వర్కింగ్

play10:04

డైరెక్టరీని ఎలా సెట్ చేయాలో మరియు

play10:05

పైథాన్ స్క్రిప్ట్ ఫైళ్లు ఎలా సృష్టించాలో

play10:06

మరియు సేవ్ చేయాలో చూశాము.

play10:07

ధన్యవాదాలు .

Rate This

5.0 / 5 (0 votes)

Related Tags
Spider InterfacePython ScriptingFile ManagementCoding TutorialVariable ExplorerWorking DirectoryCode EditorScript CreationInterface GuideProgramming Basics