Python tutorial 3: How to create Python Script using IDLE by Manish Sharma
Key Takeaways
Creates a Python script using IDLE Graphic User Interface
Full Transcript
so in the previous tutorial we used command prompt to write our very first Python program the only problem with that approach was that we could not save the code we wrote for later use the solution to this problem is to write the code on to a file and save that into our operating system that's exactly what we will be learning today Musab internet i am manish from rebellionrider.com and welcome to another tutorial of an awesome series of Python programming in today's tutorial we will learn how to create scripts in Python programming version 3 to do that we will be using IDL e editor of Python language so without wasting time let's get started but before that please consider giving this video a thumbs up and subscribe to the channel if you haven't already now let's start in order to create a Python script we have to create a file with a compatible file extension most widely used file extensions for Python scripts is dot py and some less used ones are dot p YW and dot py 3 dot py 3 is a new extension introduced with the version 3 of Python programming language famously known as Python 3 it is rarely used to file extension in Python programming dot pyw is the Python file extension for Windows and the scripts with this extension are executed with Python w dot exe whereas all other python scripts will be executed with python dot exe another Python supported file extension is dot py c as we learned that python is an interpreted programming language therefore whenever we interpret python scripts using python interpreter it automatically generates a file with dot py c extension corresponding to the scripts you must be wondering what does it dot py c file consists similar to programming language like Java Python interpreter compiles the source code of your scripts into a special machine code called bytecode bytecode is then executed by pythons virtual machine I suppose there are in total 19 or maybe more Python supported file extensions in order to save your time I will do a pre Facebook note explaining all those extensions on my Facebook page you can find the link in the description that being said let's move ahead in order to keep everything organized let's first create a directory where we will save all our Python scripts I'm going to create this directory in my document folder which is pretty much empty as you can see here you can create a folder anywhere you want in your operating system and name it whatever you want I will name this folder python tutorials great next we have to create a Python script physically a script is a file which contains a set of instructions and has a unique name as well as a dedicated file extension which is accepted by the language in python programming language that dedicated extension is dot B Y so let's start with creating a text file and then we will change its name and extension now go to the new items and choose text to document this will create a new text file now we have to rename it you can name your Python script of whatever you want but make sure it's extension must always be dot py I will need my script as T ut3 dot B Y you might get this warning simply hit yes and move ahead now you will see that the icon of your file has been changed that indicates that you have successfully created an empty Python script now we will learn how to edit a Python script using IDL egy in order to write some code onto this script we need to open it with some sort of IDE or editor luckily Python installation comes with a free IDE known as IDL e IDL e stands for integrated development and learning environment it is a graphic user interface which lets you write edit and execute a Python program can launch it either directly from your Start menu or from the right-click menu of the script file let me demonstrate right-click on the script which we just created and choose edit with ideally you must have this option in your right-click menu if you don't then please check the installation video of Python 3 anyways here we have an ideally editor open for us now let's write a very simple code onto our script let's do one thing let's write a code that will show you the latest version of Python installed on your system how about that I think it's a great idea let's do it wait I think this default phone is pretty small and almost unreadable let's fix it and then we will write the rest of our code go to options choose configure ideally font phase is set to courier new I'm good with this font but I am NOT happy with the font size so by default it is set on 10 let's increase it to say 18 good also let's make it bold too now let's also change the theme go to highlight tab and change the theme from ideally classic to ideally dark create now hit apply and ok now I guess this will be comfortable for our eyes now let's write the remaining code in order to print the latest version of Python we need to use the version method from sis module and to do that we first need to import the said module into our program that is what we did in the first line in the second line we just printed a formatted character string in the third line we call the version method of says module that completes our code now we have a complete Python script in our hands next we have to learn how to execute this script let's do that executing the code using ideally is as simple as slicing butter to execute the code in really first you need to save the changes you have made in the script simply press ctrl + S and you are done next go to run choose run module or you can simply press f5 function key this will launch your Python shell where you can see the output of your program as you can see here the latest version of Python installed is three point seven point one ideally is a very minimalistic IDE with very basic features for example it doesn't come with a debugging tool it justifies its name integrated development learning environment and as it's good for learning purposes but not suitable for intense coding anyways in the next video we will be learning how to execute Python script using command prompt so stay tuned meanwhile I want you to comment and let me know if you have ever used to debug feature of an IDE for your code remember I'm waiting for your comments and very eager to read them moreover do make sure to give this video a thumbs up and share it with your friends on your social media most importantly subscribe to the YouTube channel if you haven't already thanks for watching this is manish from rebellionrider.com
Original Description
Manish from RebellionRider.com presents Python Tutorial 3 on how to create Python Scripts using IDLE Graphic User Interface.
------------------------------------------------------------------------
►►►LINKS◄◄◄
Blog: https://www.rebellionrider.com/how-to-write-python-scripts-using-idle/
Previous Tutorial
► How to write first python program
https://youtu.be/9j0OT8rEkRc
►File Extensions for Python Script (Facebook Note)
https://www.facebook.com/notes/manish-sharma/file-extensions-for-python-scripts/610181239385250/
-------------------------------------------------------------------------
►Make sure you SUBSCRIBE and be the 1st one to see my videos!
-------------------------------------------------------------------------
►►►Find me on Social Media◄◄◄
Follow What I am up to as it happens on
https://www.facebook.com/TheRebellionRider/
https://twitter.com/rebellionrider
http://instagram.com/rebellionrider
https://plus.google.com/+Rebellionrider
http://in.linkedin.com/in/mannbhardwaj/
You can also Email me at
for E-mail address please check the About section
Please please LIKE and SHARE my videos it makes me happy.
Thanks for liking, commenting, sharing and watching more of our videos
This is Manish from RebellionRider.com
♥ I LOVE ALL MY VIEWERS AND SUBSCRIBERS
#PythonWithRebellionRider #PythonPrgramming #Python
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Manish Sharma · Manish Sharma · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Oracle Database tutorials 1: How to install Oracle Database 11g on windows 7
Manish Sharma
Oracle Database tutorials 2:How To install SQL Developer on windows 7
Manish Sharma
Oracle Database tutorials 3:How to enable Line numbers in SQL Developer.
Manish Sharma
Oracle Database tutorials 4: database connectivity using SQL developer and command prompt
Manish Sharma
Oracle Database tutorials 5: how to Fetch Data using SELECT - SQL statement by Manish Sharma
Manish Sharma
Oracle Database11g tutorials 6 | | How to use Concatenation operator, character String
Manish Sharma
Oracle Database11g tutorials 7 | |SQL DISTINCT keyword || SQL tutorials
Manish Sharma
Canon EOS 600D 2 lens kit/Canon rebell EOS T3i 2 lens kit Unboxing
Manish Sharma
First look: ORACLE CERTIFIED ASSOCIATE (OCA) CERTIFICATE - ORACLE DATABASE ADMINISTRATOR
Manish Sharma
Oracle Database11g tutorials 8 || SQL DISTINCT with multiple columns |SQL Distinct with Two columns
Manish Sharma
Oracle Database11g tutorials 9 || What is archive log mode and how to enable archive log mode
Manish Sharma
Oracle Database11g tutorials 10 || SQL Single Row Function (SQL Functions )
Manish Sharma
Oracle Database11g tutorials 11: SQL case manipulation function in Oracle Database
Manish Sharma
how to add channel trailer and section on your youtube channel 2014
Manish Sharma
Oracle Database11g tutorials 12 || SQL Concat Function - SQL character manipulation function
Manish Sharma
Oracle Database11g tutorials 13 || SQL substr function / SQL substring function
Manish Sharma
Oracle Database11g tutorials 14 : How to CREATE TABLE using sql developer and command prompt
Manish Sharma
SQL tutorials 15 || How To CREATE TABLE using enterprise manager 11g
Manish Sharma
Oracle Database11g tutorials 16: How to uninstall oracle 11g from windows 7 64 bit
Manish Sharma
ORACLE CERTIFIED PROFESSIONAL(OCP) CERTIFICATE First look - ORACLE DATABASE ADMINISTRATOR
Manish Sharma
Plantronics audio 655 USB headset with Mic Unboxing and Review and Plantronics audio 655 Mic test
Manish Sharma
SQL tutorials 17: SQL Primary Key constraint, Drop primary Key
Manish Sharma
SQL tutorials 18: SQL Foreign Key Constraint By Manish Sharma
Manish Sharma
SQL tutorial 19: ON DELETE SET NULL clause of Foreign Key By Manish Sharma (RebellionRider)
Manish Sharma
SQL tutorials 20: On Delete Cascade Foreign Key By Manish Sharma (RebellionRider)
Manish Sharma
SQL tutorial 21: How To Rename Table in SQL using ALTER TABLE statement By Manish Sharma
Manish Sharma
SQL tutorial 22: How to Add / Delete column from an existing table using alter table
Manish Sharma
SQL tutorial 23: Rename and Modify Column Using Alter Table By Manish Sharma (RebellionRider)
Manish Sharma
SQL tutorial 24 :SQLJoins- Natural Join With ON and USING clause By Manish/Rebellionrider
Manish Sharma
Oracle Database11g tutorials 25: How to install Oracle Database 11g Express Edition R2 on Windows 7
Manish Sharma
SQL tutorial 26: Introduction to SQL Joins in Oracle Database
Manish Sharma
Vidcon 2014 YouTube Fan Funding: How to enable fan funding on YouTube Channel
Manish Sharma
SQL tutorial 27: Right Outer Join in SQL by Manish Sharma for RebellionRider
Manish Sharma
SQL tutorial 28: Left Outer Join By Manish Sharma / RebellionRider
Manish Sharma
SQL tutorial 29: Full Outer Join with example By Manish Sharma/ RebellionRider
Manish Sharma
SQL tutorial 30: Inner Join In SQL by Manish Sharma/RebellionRider
Manish Sharma
SQL tutorial 31 : SQL Cross Join In Oracle Database By Manish Sharma from RebellionRider
Manish Sharma
SQL tutorial 32: How To Insert Data into a Table Using SQL Developer
Manish Sharma
SQL tutorial 33:How To Insert Data into a Table Using SQL INSERT INTO dml statement
Manish Sharma
SQL tutorial 34: How to copy /Insert data into a table from another table using INSERT INTO SELECT
Manish Sharma
SQL tutorial 35: DELETE and TRUNCATE how to delete data from a table
Manish Sharma
SQL tutorial 36: how to create database using database configuration assistant DBCA
Manish Sharma
SQL tutorial 37: How to create NEW USER account using Create User statement in Oracle database
Manish Sharma
SQL tutorial 38: How to create user using SQL Developer in Oracle database
Manish Sharma
SQL tutorial 39: How to create user in oracle using Enterprise Manager
Manish Sharma
SQL tutorial 40: DBA Trick, How to drop a user when it is connected to the database
Manish Sharma
Motorola Moto G 2nd Generation / G2 Unboxing and Review
Manish Sharma
SQL tutorial 41: How to UNLOCK USER in oracle Database
Manish Sharma
SQL tutorial 42: How to Unlock user using SQL Developer By Manish Sharma RebellionRider
Manish Sharma
SQL tutorial 43: How to create an EXTERNAL USER in oracle database By Manish Sharma RebellionRider
Manish Sharma
SQL tutorial 44: How to import data from Microsoft Excel to Oracle Database using SQL Developer
Manish Sharma
SQL tutorial 45: Introduction to user Privileges in Oracle Database By Manish Sharma RebellionRider
Manish Sharma
SQL tutorial 46: What are System Privileges & How To Grant them using Data Control Language
Manish Sharma
SQL tutorial 47: How to Grant Object Privileges With Grant Option in Oracle Database
Manish Sharma
SQL tutorial 48: How to create Roles in Oracle Database
Manish Sharma
SQL tutorial 49: CASE - Simple Case Expression in Oracle Database (1/2)
Manish Sharma
SQL tutorial 50: CASE - Searched Case Expression In Oracle (2/2)
Manish Sharma
SQL tutorial 51: DECODE function in Oracle Database By Manish Sharma (RebellionRider)
Manish Sharma
Oracle Database Tutorial 52 : Data Pump expdp - How to Export full database using expdp
Manish Sharma
Oracle Database Tutorial 53 : Data pump expdp - How to Export tablespace in Oracle Database
Manish Sharma
More on: AI Productivity Tools
View skill →
🎓
Tutor Explanation
DeepCamp AI