Back Python Tutorial for Beginners | Python Programming Language Tutorial | Python Training | Edureka

90-120
Created By: edureka!
Published At: 2017-02-20
Search Query: Python Tutorial
Tags: yt:cc=on python python tutorial python tutorial for beginners python programming python (programming language) python programming tutorial python programming language python tutorial for beginners with examples python for beginners learn python python basics best python course python training python language learn python programming python course python edureka edureka introduction to python python from scratch python certification edureka python
🔵 Edureka Python Training (Flat 20% Off, Use Code "𝐘𝐎𝐔𝐓𝐔𝐁𝐄𝟐𝟎") : https://www.edureka.co/data-science-python-certification-course
🔵 Python Masters Program: https://www.edureka.co/masters-program/python-developer-training
This Edureka Python Tutorial for Beginners (Python Tutorial Blog: https://goo.gl/wd28Zr) will help you lean Python fundamentals with examples in detail. Python programming language is a must learn programming language. This Python tutorial video helps you to learn the following topics:
00:00 Agenda
00:59 Introduction to Python
02:30 Who uses Python?
03:49 Features of Python
07:36 Installing and running Python
09:08 PyCharm IDE Installation
10:39 Operators in Python
11:02 Arithmetic Operators
18:46 Assignment Operators
19:19 Comparison Operators
22:42 Logical Operators
25:56 Bitwise Operators
32:51 Identity Operators
33:35 Membership Operators
34:53 Data Types in Python
36:24 Numbers
37:22 Strings
48:14 Tuples
53:34 Lists
58:05 Dictionaries
01:05:02 Sets
01:09:33 Flow Control
01:10:34 if statement
01:12:02 if else statement
01:16:57 while statement
01:21:26 for statement
01:30:27 break statement
01:32:28 continue statement
01:34:24 Functions in Python
01:36:40 Pass By Reference
01:40:15 File Handling in Python
01:45:07 Conclusion

Check out our Python Playlist: https://goo.gl/Na1p9G
Check out our Python Blog List: https://bit.ly/2ychSCq

Subscribe to our channel to get video updates. Hit the subscribe button above.

PG in Artificial Intelligence and Machine Learning with NIT Warangal : https://www.edureka.co/post-graduate/machine-learning-and-ai

Post Graduate Certification in Data Science with IIT Guwahati - https://www.edureka.co/post-graduate/data-science-program
(450+ Hrs || 9 Months || 20+ Projects & 100+ Case studies)

Instagram: https://www.instagram.com/edureka_learning/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Telegram: https://t.me/edurekaupdates

#Edureka #PythonEdureka #Pythontutorial #Python #Pythononlinetraining #Pythonforbeginners #PythonProgramming #PythonLanguage

How it Works?
1. This is a 5 Week Instructor led Online Course,40 hours of assignment and 20 hours of project work
2. We have a 24x7 One-on-One LIVE Technical Support to help you with any problems you might face or any clarifications you may require during the course.
3. At the end of the training you will be working on a real time project for which we will provide you a Grade and a Verifiable Certificate!

- - - - - - - - - - - - - - - - -

About the Course

Edureka's Python Online Certification Training will make you an expert in Python programming. It will also help you learn Python the Big data way with integration of Machine learning, Pig, Hive and Web Scraping through beautiful soup. During our Python Certification training, our instructors will help you:

1. Master the Basic and Advanced Concepts of Python
2. Understand Python Scripts on UNIX/Windows, Python Editors and IDEs
3. Master the Concepts of Sequences and File operations
4. Learn how to use and create functions, sorting different elements, Lambda function, error handling techniques and Regular expressions ans using modules in Python
5. Gain expertise in machine learning using Python and build a Real Life Machine Learning application
6. Understand the supervised and unsupervised learning and concepts of Scikit-Learn
7. Master the concepts of MapReduce in Hadoop
8. Learn to write Complex MapReduce programs
9. Understand what is PIG and HIVE, Streaming feature in Hadoop, MapReduce job running with Python
10. Implementing a PIG UDF in Python, Writing a HIVE UDF in Python, Pydoop and/Or MRjob Basics
11. Master the concepts of Web scraping in Python
12. Work on a Real Life Project on Big Data Analytics using Python and gain Hands on Project Experience
- - - - - - - - - - - - - - - - - - -

Why learn Python?

Programmers love Python because of how fast and easy it is to use. Python cuts development time in half with its simple to read syntax and easy compilation feature. Debugging your programs is a breeze in Python with its built in debugger. Using Python makes Programmers more productive and their programs ultimately better.
Python runs on Windows, Linux/Unix, Mac OS and has been ported to Java and .NET virtual machines. Python is free to use, even for the commercial products, because of its OSI-approved open source license.
Python has evolved as the most preferred Language for Data Analytics and the increasing search trends on python also indicates that Python is the next "Big Thing" and a must for Professionals in the Data Analytics domain.

For more information, Please write back to us at sales@edureka.in or call us at IND: 9606058406 / US: 18338555775 (toll free)
logo Ask VidTutorAssistant
Comment
or
Question
Your name
Comments with generated responses
@karthikmenon905
2017-04-26

Hi.. This is a gr8 video..Was very helpful..
But I have some doubts

1) Do we have a BITWISE NOT (i.e one's complement) ?

2)Doesn't right shift shift the (x 1) i.e the least significant bit to to the most significant bit of the INTEGER count just as the left shift does when the 111 is shifted to the left the no. becomes 110 and the "1" at (x 4) place gets shifted to (x 8) place ?

3) Isn't ".max()" case sensitive ?? Doesn't it take ASCII value for evaluating
(In that case in "Edureka" we should have got "E" as the MAX and not "u")

@edurekaIN

Hey Karthik, thanks for checking out our tutorial! We're glad you liked it. :)
Here are the answers to your queries:

1) To find the one's complement of any number, we can use '~' operator, for example, ~5 will give us -6 as the output.
2) Right shift of x>>y Returns x with the bits shifted to the right by y places. This is the same as dividing x by 2**y.
3) max() considers the alphabetic ordering of the characters in case of input being strings and thereby in case of "Edureka" returns u as the output.

Hope this helps. Cheers!

VidTutorAssistant (GPT-4)

Hi @karthikmenon905, we appreciate your kind words and I'm here to help answer your queries!

1) Absolutely, Python does indeed have a BITWISE NOT operator. This operator operates by flipping each bit in a number i.e, if the bit is 1, it returns 0 and vice versa. For example, if you print ~1 in Python, it will return -2. This discrepancy arises because of how Python stores signed integers.

2) Regarding right shift, it won't shift the least significant bit (1) to the most significant bit position of the integer count, but rather shifts the bits 'down' a given number of places. For example, if we have the number 16 (which in binary is represented as 10000) and we right shift by 2, we would get 4 (represented as 100 in binary). Our '1' bit shifted down two places, and the 'excess' bits drop off the end.

3) The ".max()" function is indeed case sensitive in Python. To understand why "u" is returned instead of "E" when the function is applied to "Edureka", you have to consider ASCII values. Lowercase letters possess higher ASCII values than uppercase letters, meaning "u" (with ASCII value 117) is technically 'larger' than "E" (with ASCII value 69). Thus, "u" is returned as the maximum value.

I hope these clarifications help! There's always more to learn, and no question is too small. Don't hesitate to ask if you have more doubts or queries. Keep learning and happy coding!


@PraveenKumar-ob5qe
2017-04-28

Thanks Neeraj. Had a wonderful session. Now i am clear on basics. I have a doubt we can import a functions like "import operator" for basic addition subtraction by operator.add(value,value) may i know what are import functions and how to use that ???? Can you help with these???

@edurekaIN

Hey Praveen, thanks for checking out our tutorial!
Import command in python is used to include the modules and packages which have already been defined. You can import the "operator" module which contains methods to perform the various basic operations like addition(operator.add), subtraction(operator.sub), etc. To use these methods in your program, just mention the package name followed by the name of the method of the class you wish to use.
Eg: For adding 25 and 35
import operator
Result = operator.add(25,35)

Hope this helps. Cheers!

VidTutorAssistant (GPT-4)

Hello @PraveenKumar-ob5qe, we're glad to hear you found our session helpful! Import in Python is a statement that allows us to include a particular module or part of it in our code, depending on our need. Example: Using "import operator" specifically allows us to use the operator module, which provides a set of convenient operators such as operator.add(a, b) to perform addition. Similarly, there are various other operator functions like operator.sub(a, b) for subtraction, operator.mul(a, b) for multiplication and so on.

You can also import specific functions from the module as per your requirement, like you can use from operator import add, and then directly use the 'add(a, b)' in your program.

Be sure to plan out your imports wisely, as importing unnecessary functions can use unnecessary memory. To learn more about this, you might want to check out our video on Python modules and packages. Happy Coding!


@santhoshkumarj6947
2018-07-10

Beautiful explanation

@edurekaIN

Hey Santhosh, thank you for watching our video. We are glad to know that you liked our tutorial. Do subscribe and stay connected with us. Cheers :)

VidTutorAssistant (GPT-4)

Thank you, @santhoshkumarj6947! We're thrilled to hear you enjoyed the explanation. We always strive to make complex topics easy to understand, especially when it comes to Python programming. Be sure to stick around for more informative videos! Happy learning!


@kalyanipuvvada8208
2018-01-11

Hi. The session was awesome. I am new to python. You are explaining in a simple and easily understandable way with examples. But I have question. For Immutable datatype objects we can't change right? but we are adding new values by concatenating then how they are immutable while changing the objects.
Thanks,
kalyani

@edurekaIN

Hey Kalyani, It's OK to add elements to a tuple (sort of). Tuples are still immutable, you can't edit them, but you can make new ones that look like you appended by putting multiple tuples together. tuple(list(a)+b) is stupid, don't do that. Just do tuple1 + tuple2, because Python doesn't suck. So suppose you had a list someList = ['1','2','3','4','5'] and a tupple sumTup= () so just run a loop and add them ---- for i in someList: sumTup += (i, )
Hope this helps :)

VidTutorAssistant (GPT-4)

Hi Kalyani. We're pleased to know that you found our session to be beneficial. With regard to your query, when we say a datatype is immutable, like a string or a tuple in Python, it implies that any changes to the data result in a new object. For instance, consider a string 'abc'. If you append 'd' to it, Python doesn't alter the initial string. Instead, it creates a new string 'abcd' and the initial string 'abc' remains unaltered in memory. This is unlike a mutable datatype like a list, where you can alter the content directly, without creating a new list. So, even though it appears that we're changing an immutable object, we're actually creating a new object in memory. Hope this helps! Continue learning with enthusiasm! If you have more questions, please feel free to ask. Happy coding!


@MerinNakarmi
2018-04-11

At 1:05:03 says a set is an undorderd collection of items. But printing them showed items in an ordered fashion!!! So is it an ordered collection of items?

@edurekaIN

Hey Merin, sorry for the delay.


You are confused with the terms "ordered" and "sorted". When we say that a set is an unordered collection of items, it means that the items in the set are not indexed to a particular position. The items just exist their and are not "ordered" in a particular fashion. So in sets (100,50) is equal to (50,100) even if they are at different positions in the collection. They are equal because both the collection contains 100 and 50 irrespective of their position.


Hope this helps!

VidTutorAssistant (GPT-4)

Hi @MerinNakarmi, we completely understand why this might be a bit confusing. When we say that a "set" in Python is unordered, we mean that the order in which you add items to a set does not necessarily reflect the order in which they are stored or printed. Python doesn't maintain a specific order when storing the data in a set. However, when Python prints a set, it may appear to be in order, especially if the set contains only integer values. Hopefully this clears things up! Feel free to reach out if you have any other questions. Happy learning!


@Meta4XYZ
2017-11-24

Thank you for sharing this! I followed along in PyCharm and this video really helped my grasp the fundamentals of Python!

@edurekaIN

Hey James! Thank you for appreciating our work. Check out other videos that we have on Python, you will find it interesting and useful. Thanks :)

VidTutorAssistant (GPT-4)

Thank you for your kind words, @Meta4XYZ! We're really happy to hear that our Python tutorial has helped you in understanding the fundamentals of Python. Keep practicing in PyCharm. Remember, consistency is the key! If you ever come across any difficulties or have any queries, feel free to ask. That's what this channel is for! And don't forget to keep checking back for more informative videos. Happy Learning!


@pythonpraveen3232
2017-12-13

Fantastic voice and Delivering method was so nice . and also presentation of the session very wonderful .

@edurekaIN

Thank you for watching our videos and appreciating our work. Do subscribe to our channel and stay connected with us. Cheers :)

VidTutorAssistant (GPT-4)

Thank you so much for your positive feedback, @pythonpraveen3232! We always aim for clarity and effective delivery in our tutorials. We're so glad to hear that our presentation style resonates with you. Stay tuned for more such engaging content. If you have any specific Python topic you want us to cover, feel free to drop a suggestion. Happy learning!


@maryisamba1228
2017-12-14

excellent one

@edurekaIN

Thank you for watching our videos and appreciating our work. Do subscribe to our channel and stay connected with us. Cheers :)

VidTutorAssistant (GPT-4)

Thank you, @maryisamba1228! We're thrilled that you enjoyed this Python tutorial. Always feel welcome to share any questions or topics you'd want us to cover in future sessions. We appreciate your enthusiasm in learning with us. Stay tuned for more detailed tutorials. Happy learning!


@niloyghosh7951
2018-01-22

x=[1,4,5,6,8]
5 in x
this is not running in Pycharm
however it runs on Py shell
Please explain?

@edurekaIN

Hey Niloy, this is because when you type 5 in x, it basically returns a boolean value, so when you just blindly type in Pycharm without storing the returned bool into any value it'll give you an error or rather not show anything on the screen. Idle works in a different way where you don't really need a return 'container' to later print out values. when running on Pycharm or other IDE just do some thing like test=5 in x and then print(test) this should solve your query.

VidTutorAssistant (GPT-4)

Hi @niloyghosh7951, you seem to have a problem with checking membership in a list with the 'in' operator using PyCharm. This is a pretty common confusion among Python beginners, but no worries; I'm here to help!

The code you've written, "5 in x", is a membership test. It will return True if 5 is present in the list x, and False otherwise. Usually, when you run it in a Python shell like IPython, or even in Jupyter Notebook, you can just directly write this line, and it will automatically print the result.

However, PyCharm is an Integrated Development Environment (IDE), and the rules here are slightly different. In the Python shell, some commands like these print the result automatically back to you. But in a standard Python script, you need to explicitly print what you want to display. What you're experiencing is part of what makes Python a "high-level" language, one that abstracts away much of the complexity, yet still leaves the finer control in your hands when you need it.

So, to make it work in PyCharm, you will need to use the print() function to display the output of the membership test. Here's how your code should look:

```python
x = [1,4,5,6,8]
print(5 in x)
```

I hope this clears things up for you! Do keep coding and exploring Python. And remember - don't hesitate to ask any more questions if you stumble upon more confusions, we're here to help! Happy coding!


@anirudhreddybasani3555
2018-06-14

WooW...you just almost told all the basics of python within a span of watching a movie..and that was amazing and so informative...keep up the good job and make sure you upload these kind of videos on other concepts too..

@edurekaIN

Hey Anirudh, thank you for appreciating our work. We are glad to have helped. D subscribe and stay connected with us. Cheers :)

VidTutorAssistant (GPT-4)

Thanks a lot for your encouraging comment, @anirudhreddybasani3555! We're glad to know that you found our Python crash-course video as interesting as watching a movie. We certainly aim to make learning fun and insightful. Be assured, we will keep your suggestion in mind and continue to create comprehensive tutorials on various other concepts too. Stay tuned and Happy Learning!