Recording intelligenceAI-generated brief · check the source for context

15 Minute Python Tutorial For Beginners In Hindi (Full & Complete Python Crash Course)

17:37 recording · EN · 1 speaker

Watch the original

Executive Summary AI
  • The speaker promises one very short video covering Python from the beginning for games, GUI, data science and machine learning, with the code link and timestamps in the description.
  • Setup is done by downloading the latest version, 3.7, from python.org via a Chrome search, ticking "add Python 3.7 to path" during installation, then opening IDLE 32-bit and creating a new file where print("hello world") is run with F5.
  • Modules come in two kinds: installed ones such as flask via "pip install flask" in PowerShell or Command Prompt, and built-ins such as Math, imported with import Math and used as math.floor(3.65), which prints 3, or math.cos.
  • The core data types are walked through in turn — int, string and float variables checked with type(), string functions capitalize, find, upper and lower, lists whose index starts at 0 and whose items can be reassigned, tuples that raise "tuple object does not support assignment", dictionaries holding virat 100 and Sachin 500 runs with .get, .items and .keys, and sets that drop repeated items.
  • The last third covers operators and typecasting with str() and int(), input() read as a string, if/else/elif with indentation instead of curly braces, for loops over range and while loops with manual i increments, functions defined with def and return (average of 3 and 6 gives 4.5), try/except for exceptions, and writing then reading 1.txt with open, f.write, f.read and f.close.

Brief overview

A single short video walks a beginner through Python basics from installation to file handling.

  1. Tick add Python to path while installingThe speaker stresses checking "add Python 3.7 to path" during install, then searching IDLE to write code.
  2. Lists change, tuples do notitems[0] can be reassigned to Manish, while changing tube1[0] raises "tuple object does not support assignment".
  3. Indentation replaces curly braces in PythonBecause Python has no braces like JavaScript or C++, indentation is what tells the interpreter you are inside the if statement.

Questions this recording answers

10 questions, each answered where it is said
How do I install Python on my computer?

Open the Chrome browser, search Python install and go to the python.org link, then download the latest version, which is 3.7 at the time of this video. Open the downloaded file and install it, ticking Add Python 3.7 to path while installing, then click Install Now.

Where do I write and run my first Python program?

Click the Start button and search IDLE, then open the Python 3.7 32-bit result that appears. Choose File, then New File, and write your code there, for example a print statement with hello world inside the brackets. Press F5, save and name the file, and the output shows.

What kinds of variables can I make in Python?

Variables are containers of values. Writing a equal to 1 and b equal to 3 makes integer variables, so print a plus b gives 4. Writing c equal to this is me makes a string variable, and d equal to 3.4 makes a float. The type function reports class float, class string or class int.

What is a list and how do I change items inside it?

A list is just a container of variables, and it can hold integers, strings, even another list. You write items equal to square brackets with 1, 2, 3 inside; printing its type gives class list. Writing items 0 equal to Manish changes the first element, because counting starts from 0.

How do I create a dictionary and read a value from it?

A dictionary is a key value pair, denoted by curly braces, and its type shows as class dict. Storing virat with the value 100 and printing dict1 shows virat is 100. The .get method with virat returns 100, .items shows all the items, and .keys prints only the keys.

How do I write conditions with if, else and elif?

Use an if statement, such as if var is greater than 4, print variable is greater, with an else branch for the other case. Indentation shows what sits inside the if, because Python has no curly braces like JavaScript or C++. elif checks additional conditions, like whether the variable is 2.

How do I print numbers from 1 to 100 with a loop?

Write for i in range, which is a function, from 0 to 100, then print i inside it. That actually prints 0 to 99, because it starts at 0 and ends at n minus 1, so write 101 to get 0 to 100. A while loop needs i equal to i plus 1 written manually.

How do I write my own function in Python?

Use the def keyword with the name of the function, then give it the variables it takes, here num1 and num2. Inside write avr equal to num1 plus num2 upon 2, and then return avr, so that value comes back to whatever you assign it to. Printing average 3 comma 6 gives 4.5.

What is the difference between a list and a tuple?

Tuples and lists are almost the same; the difference is that you cannot change the elements of a tuple. A tuple uses parentheses instead of square brackets, like tube1 equal to 1, 2, 3, and its type is class tuple. Writing tube 0 equal to 2 errors: tuple object does not support assignment.

How do I install and use a module such as flask?

Right click the Start button and select PowerShell or Command Prompt. There you write pip install and the name of the module, so pip install flask installs Flask and all of its dependencies as well. Built-in modules like Math need no install, only import Math.

Key Quote

“If you watch this video completely, I can guarantee you that you will never have a problem in writing Python code.”

— 15 Minute Python Tutorial For Beginners In Hindi (Full & Complete Python Crash Course), at 0:12▶ watch at 0:12
Key Quote

“While installing, you should check the add of add Python 3.7 to path.”

— 15 Minute Python Tutorial For Beginners In Hindi (Full & Complete Python Crash Course), at 0:44▶ watch at 0:44
Key Quote

“in python index starts with 0”

— 15 Minute Python Tutorial For Beginners In Hindi (Full & Complete Python Crash Course), at 5:27▶ watch at 5:27
Key Quote

“That's why it is considered a very good programming language for beginners”

— 15 Minute Python Tutorial For Beginners In Hindi (Full & Complete Python Crash Course), at 7:10▶ watch at 7:10
Key Quote

“It will say that tuple object does not support assignment.”

— 15 Minute Python Tutorial For Beginners In Hindi (Full & Complete Python Crash Course), at 8:25▶ watch at 8:25
Key Quote

“We use indentation because we don't use curly braces like JavaScript or C++.”

— 15 Minute Python Tutorial For Beginners In Hindi (Full & Complete Python Crash Course), at 13:01▶ watch at 13:01

Cite this

“15 Minute Python Tutorial For Beginners In Hindi (Full & Complete Python Crash Course).” https://www.youtube.com/watch?v=fr1f84rg4Nw. Transcript summary by WhipScribe, https://whipscribe.com/transcript-pages/15-minute-python-tutorial-for-beginners-in-hindi-full-comple.html.

Report this page
What is wrong with this page?