title
Python Crash Course For Beginners
description
In this crash course we will be going over Python programming basics like variables, data types and structures, functions, loops, classes and more. Timestamps are below...
Python Sandbox Files:
https://github.com/bradtraversy/python_sandbox
TIMESTAMPS:
2:15 - Comments, Variables & Data Types
9:50 - String Formatting & Methods
17:40 - Lists
24:15 - Tuples & Sets
33:09 - Dictionaries
42:15 - Functions
49:25 - Conditionals
59:09 - Loops
1:05:06 - Modules
1:15:52 - Classes & Objects
1:26:17 - Working With Files
1:30:57 - Working With JSON
Full Django Course Promo Link:
https://www.udemy.com/python-django-dev-to-deployment/?couponCode=TRAVERSYMEDIA
💖 Become a Patron: Show support & get perks!
http://www.patreon.com/traversymedia
Website & Udemy Courses
http://www.traversymedia.com
Follow Traversy Media:
https://www.facebook.com/traversymedia
https://www.twitter.com/traversymedia
https://www.instagram.com/traversymedia
detail
{'title': 'Python Crash Course For Beginners', 'heatmap': [{'end': 977.619, 'start': 919.162, 'weight': 0.737}, {'end': 2989.2, 'start': 2927.487, 'weight': 0.786}, {'end': 4431.625, 'start': 4362.75, 'weight': 1}, {'end': 4661.617, 'start': 4536.769, 'weight': 0.864}], 'summary': 'Tutorial covers a python crash course for beginners, including essentials like transitioning to vs code, using python sandbox, and installing python 3. it also delves into topics such as variables, data types, string manipulation, data structures like lists, tuples, sets, dictionaries, functions, programming essentials, module creation, class instantiation, file handling, and json manipulation, with practical examples.', 'chapters': [{'end': 128.782, 'segs': [{'end': 46.947, 'src': 'embed', 'start': 7.372, 'weight': 0, 'content': [{'end': 10.954, 'text': "Hey, what's going on, guys? Welcome to my Python crash course for beginners.", 'start': 7.372, 'duration': 3.582}, {'end': 15.837, 'text': 'Now, I did a crash course about a year ago and we use the Eclipse IDE.', 'start': 11.094, 'duration': 4.743}, {'end': 21.6, 'text': "And what I've always hated about that video is the unnecessary amount of time that I took just to set up Eclipse.", 'start': 16.257, 'duration': 5.343}, {'end': 24.442, 'text': 'It was like 10, 10, 12 minutes or something like that.', 'start': 21.98, 'duration': 2.462}, {'end': 27.356, 'text': "And I wouldn't even suggest using Eclipse anymore.", 'start': 25.155, 'duration': 2.201}, {'end': 31.298, 'text': "We're going to be using VS Code, which is what I use for virtually everything I do.", 'start': 27.416, 'duration': 3.882}, {'end': 35.401, 'text': 'I also missed some things and it just could have been a better video.', 'start': 32.119, 'duration': 3.282}, {'end': 37.822, 'text': "So we're actually going to just jump right into it.", 'start': 35.501, 'duration': 2.321}, {'end': 43.825, 'text': "And what I'm doing is using the Python Sandbox, which is actually from my Django course on Udemy.", 'start': 38.102, 'duration': 5.723}, {'end': 46.947, 'text': "I'll put a link in the description if you're interested in that.", 'start': 44.345, 'duration': 2.602}], 'summary': 'Python crash course for beginners using vs code instead of eclipse, with a focus on efficiency and improvement.', 'duration': 39.575, 'max_score': 7.372, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs7372.jpg'}, {'end': 114.255, 'src': 'embed', 'start': 86.933, 'weight': 1, 'content': [{'end': 90.515, 'text': 'So you need to have Python 3, which you can get from python.org.', 'start': 86.933, 'duration': 3.582}, {'end': 91.596, 'text': 'Just go to Downloads.', 'start': 90.555, 'duration': 1.041}, {'end': 93.678, 'text': "I'm on a Mac, so I would just click here.", 'start': 91.976, 'duration': 1.702}, {'end': 95.939, 'text': "If you're on Windows, you can download the installer.", 'start': 93.718, 'duration': 2.221}, {'end': 100.142, 'text': 'So you just want to get that installed and then open up a terminal.', 'start': 96.74, 'duration': 3.402}, {'end': 102.984, 'text': "VS Code has an integrated terminal that I'll be using.", 'start': 100.322, 'duration': 2.662}, {'end': 105.406, 'text': 'And if you say python-version.', 'start': 103.705, 'duration': 1.701}, {'end': 112.292, 'text': "on a Mac you're probably going to see Python 2.7 which is not what we want to use.", 'start': 107.006, 'duration': 5.286}, {'end': 114.255, 'text': 'Once you install Python 3.', 'start': 112.553, 'duration': 1.702}], 'summary': "Install python 3 from python.org, check version, use vs code's integrated terminal.", 'duration': 27.322, 'max_score': 86.933, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs86933.jpg'}], 'start': 7.372, 'title': 'Python crash course for beginners', 'summary': 'Introduces a python crash course for beginners, emphasizing the switch from eclipse ide to vs code, the utilization of python sandbox, and the importance of having python 3 installed. it highlights the need for beginners to download the sandbox, open it in vs code, and install python 3 from python.org.', 'chapters': [{'end': 128.782, 'start': 7.372, 'title': 'Python crash course for beginners', 'summary': 'Introduces a python crash course for beginners, highlighting the switch from eclipse ide to vs code, the utilization of python sandbox, and the importance of having python 3 installed, emphasizing the need for beginners to download the sandbox and open it in vs code, and install python 3 from python.org.', 'duration': 121.41, 'highlights': ['The chapter emphasizes the shift from Eclipse IDE to VS Code for the crash course, providing a more efficient and preferred platform for Python development. The speaker expresses dissatisfaction with the unnecessary setup time in Eclipse IDE and recommends using VS Code for the course.', "The Python Sandbox from the speaker's Django course on Udemy is utilized, providing a link for interested individuals to access it in the description. The speaker mentions using the Python Sandbox from their Django course on Udemy and shares a link for access in the description.", 'The importance of having Python 3 installed is stressed, with guidance on obtaining it from python.org and checking the version using the terminal. The chapter emphasizes the need to have Python 3 installed, providing guidance on obtaining it from python.org and checking the version using the terminal.']}], 'duration': 121.41, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs7372.jpg', 'highlights': ['The chapter emphasizes the shift from Eclipse IDE to VS Code for the crash course, providing a more efficient and preferred platform for Python development.', 'The importance of having Python 3 installed is stressed, with guidance on obtaining it from python.org and checking the version using the terminal.', "The Python Sandbox from the speaker's Django course on Udemy is utilized, providing a link for interested individuals to access it in the description."]}, {'end': 578.686, 'segs': [{'end': 156.511, 'src': 'embed', 'start': 129.042, 'weight': 0, 'content': [{'end': 132.603, 'text': "OK, so whatever whatever is version three, that's what you want to run your files with.", 'start': 129.042, 'duration': 3.561}, {'end': 135.604, 'text': "So let's clear this up and we'll get started.", 'start': 133.323, 'duration': 2.281}, {'end': 139.985, 'text': "So this variables dot pi, we're going to go over a couple of things.", 'start': 135.744, 'duration': 4.241}, {'end': 144.606, 'text': "We're going to go over how to define variables, some of the rules and also data types.", 'start': 140.005, 'duration': 4.601}, {'end': 148.727, 'text': "OK, because just like with any language, there's a bunch of different data types.", 'start': 144.786, 'duration': 3.941}, {'end': 152.148, 'text': "We're only going to look at the more more common ones.", 'start': 149.407, 'duration': 2.741}, {'end': 156.511, 'text': "there's. there's others that aren't used very much I'm not going to get into.", 'start': 153.148, 'duration': 3.363}], 'summary': 'Version three is recommended for file running. the tutorial covers variable definition, rules, and common data types.', 'duration': 27.469, 'max_score': 129.042, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs129042.jpg'}, {'end': 232.148, 'src': 'embed', 'start': 192.369, 'weight': 2, 'content': [{'end': 199.819, 'text': "These triple quotes, whether single or double, these are called doc strings and they're often used to define functions.", 'start': 192.369, 'duration': 7.45}, {'end': 208.571, 'text': "So you'll see these a lot in function declarations, but they can also be used for multi-line comments as you can see here.", 'start': 200.039, 'duration': 8.532}, {'end': 212.975, 'text': "So let's go over some of the variable rules that are the naming conventions.", 'start': 209.472, 'duration': 3.503}, {'end': 214.436, 'text': "So they're case sensitive.", 'start': 213.255, 'duration': 1.181}, {'end': 220.56, 'text': 'If you create a variable called name all lowercase and name all uppercase, these are going to be different variables.', 'start': 214.636, 'duration': 5.924}, {'end': 223.482, 'text': 'They must start with a letter or an underscore.', 'start': 221.34, 'duration': 2.142}, {'end': 226.944, 'text': 'They can have numbers, but they cannot start with a number.', 'start': 223.942, 'duration': 3.002}, {'end': 232.148, 'text': "And that's a very common rule for variables in many different languages.", 'start': 226.964, 'duration': 5.184}], 'summary': 'Doc strings define functions and variable naming conventions are case sensitive, must start with a letter or underscore, and can include numbers.', 'duration': 39.779, 'max_score': 192.369, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs192369.jpg'}, {'end': 378.739, 'src': 'embed', 'start': 331.501, 'weight': 3, 'content': [{'end': 337.484, 'text': "Now, it's important to know that with Booleans, you want to have a capital T for true or a capital F for false.", 'start': 331.501, 'duration': 5.983}, {'end': 343.007, 'text': "If I do that, it's going to be looked at as a variable called true, which doesn't exist.", 'start': 337.524, 'duration': 5.483}, {'end': 346.669, 'text': "So those are the main types that you'll be dealing with.", 'start': 344.208, 'duration': 2.461}, {'end': 349.37, 'text': "So there's an easier way.", 'start': 347.549, 'duration': 1.821}, {'end': 353.432, 'text': 'If we want to declare all these variables, we can actually do a multiple assignment.', 'start': 349.41, 'duration': 4.022}, {'end': 356.234, 'text': "So let's go ahead and say multiple assignment.", 'start': 353.853, 'duration': 2.381}, {'end': 364.3, 'text': "Assignment And again, I'm going to put a lot of comments in this code in the sandbox just so you guys have it as a reference.", 'start': 356.534, 'duration': 7.766}, {'end': 367.423, 'text': "So let's say we want to do exactly what we just did above.", 'start': 364.921, 'duration': 2.502}, {'end': 372.607, 'text': 'We could say X, Y name and is cool.', 'start': 367.483, 'duration': 5.124}, {'end': 378.739, 'text': 'And we could set that to a set of parentheses and then we can put the value.', 'start': 374.857, 'duration': 3.882}], 'summary': 'Learning about booleans and multiple assignments in python.', 'duration': 47.238, 'max_score': 331.501, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs331501.jpg'}, {'end': 502.21, 'src': 'embed', 'start': 410.918, 'weight': 4, 'content': [{'end': 412.319, 'text': 'Okay, so we want to go like that.', 'start': 410.918, 'duration': 1.401}, {'end': 422.775, 'text': 'So if I run this file by saying Python three and the name of the file, which is variables dot pie, we get hello.', 'start': 413.413, 'duration': 9.362}, {'end': 428.836, 'text': "OK, if I want to output one of these variables like X, we'll go ahead and run that.", 'start': 422.795, 'duration': 6.041}, {'end': 429.497, 'text': 'We get one.', 'start': 428.896, 'duration': 0.601}, {'end': 431.517, 'text': 'We can also output multiple things.', 'start': 429.537, 'duration': 1.98}, {'end': 440.019, 'text': "So we'll do X Y name is cool and we'll run that and you can see it will output all of that stuff.", 'start': 431.597, 'duration': 8.422}, {'end': 447.856, 'text': 'All right, and of course, we can do most of the stuff that you can do in any other language, like, for instance, basic math.', 'start': 441.032, 'duration': 6.824}, {'end': 452.539, 'text': 'I could create a variable called a and set it to x plus y.', 'start': 447.956, 'duration': 4.583}, {'end': 464.662, 'text': "And if we wanted to add a on the end of this print right here and run that, you'll see we get 3.5.", 'start': 452.539, 'duration': 12.123}, {'end': 466.484, 'text': 'Now we can also check the type.', 'start': 464.662, 'duration': 1.822}, {'end': 469.046, 'text': "So let's say we wanted to check the type of X.", 'start': 466.984, 'duration': 2.062}, {'end': 471.989, 'text': "Let's do a print.", 'start': 469.046, 'duration': 2.943}, {'end': 477.755, 'text': "And in here we're going to use the type function.", 'start': 474.892, 'duration': 2.863}, {'end': 480.437, 'text': "So we're going to say type and X.", 'start': 477.795, 'duration': 2.642}, {'end': 481.639, 'text': "And let's see what that gives us.", 'start': 480.437, 'duration': 1.202}, {'end': 484.454, 'text': 'So it gives us this class int.', 'start': 482.833, 'duration': 1.621}, {'end': 486.416, 'text': 'So the type is going to be in here.', 'start': 484.875, 'duration': 1.541}, {'end': 491.821, 'text': 'Now, there may be cases where you want to cast a different type to a value.', 'start': 486.957, 'duration': 4.864}, {'end': 496.165, 'text': "Let's say we want to make x, which is an int of 1.", 'start': 491.981, 'duration': 4.184}, {'end': 499.367, 'text': "Let's say we want to make that a string of 1.", 'start': 496.165, 'duration': 3.202}, {'end': 502.21, 'text': 'So we can do casting.', 'start': 499.367, 'duration': 2.843}], 'summary': 'Introduction to python variables, outputs, math operations, and data types.', 'duration': 91.292, 'max_score': 410.918, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs410918.jpg'}], 'start': 129.042, 'title': 'Python variables and data types', 'summary': 'Covers the basics of defining variables and data types in python, emphasizing the importance of version three for running files, the concept of variables as containers for values with various data types, commenting in a python file, rules and naming conventions for variables, creating variables and their types, multiple assignment, using the print function, basic math operations, checking variable types, and type casting in python.', 'chapters': [{'end': 172.944, 'start': 129.042, 'title': 'Variables and data types in python', 'summary': 'Covers the basics of defining variables and data types in python, emphasizing the importance of version three for running files and the concept of variables as containers for values with various data types.', 'duration': 43.902, 'highlights': ['The importance of version three for running files in Python is emphasized.', 'The chapter explains the concept of variables as containers for values with various data types.', 'The chapter covers the basics of defining variables, rules, and common data types in Python.']}, {'end': 578.686, 'start': 172.944, 'title': 'Python variables and comments', 'summary': 'Explains how to comment in a python file, the rules and naming conventions for variables, creating variables and their types, multiple assignment, using the print function, basic math operations, checking variable types, and type casting in python.', 'duration': 405.742, 'highlights': ['Explaining comments and doc strings in Python files The chapter explains the usage of number sign for single line comments and triple quotes for doc strings, used to define functions.', 'Rules and naming conventions for variables in Python The chapter outlines variable rules, including case sensitivity, starting with a letter or underscore, and not starting with a number.', 'Creating and setting variables with different types The chapter demonstrates creating variables with different types including int, float, string, and bool, and highlights the usage of single quotes for strings and capital T and F for Boolean values.', 'Multiple assignment of variables The chapter explains the concept of multiple assignment, demonstrating a more compact way to assign values to multiple variables using parentheses.', 'Using the print function to output variables The chapter introduces the print function in Python and demonstrates its usage to output single and multiple variables.', 'Performing basic math operations and checking variable types The chapter illustrates basic math operations using variables and demonstrates checking variable types using the type function.', 'Type casting of variables in Python The chapter explains the concept of type casting, demonstrating how to convert variables from one type to another, including int to string, float to int, and int to float.']}], 'duration': 449.644, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs129042.jpg', 'highlights': ['The importance of version three for running files in Python is emphasized.', 'The chapter covers the basics of defining variables, rules, and common data types in Python.', 'Explaining comments and doc strings in Python files The chapter explains the usage of number sign for single line comments and triple quotes for doc strings, used to define functions.', 'Creating and setting variables with different types The chapter demonstrates creating variables with different types including int, float, string, and bool, and highlights the usage of single quotes for strings and capital T and F for Boolean values.', 'Type casting of variables in Python The chapter explains the concept of type casting, demonstrating how to convert variables from one type to another, including int to string, float to int, and int to float.', 'Using the print function to output variables The chapter introduces the print function in Python and demonstrates its usage to output single and multiple variables.', 'Multiple assignment of variables The chapter explains the concept of multiple assignment, demonstrating a more compact way to assign values to multiple variables using parentheses.', 'Performing basic math operations and checking variable types The chapter illustrates basic math operations using variables and demonstrates checking variable types using the type function.', 'Rules and naming conventions for variables in Python The chapter outlines variable rules, including case sensitivity, starting with a letter or underscore, and not starting with a number.']}, {'end': 1037.082, 'segs': [{'end': 633.321, 'src': 'embed', 'start': 579.447, 'weight': 1, 'content': [{'end': 580.968, 'text': 'OK, so hopefully that makes sense.', 'start': 579.447, 'duration': 1.521}, {'end': 582.768, 'text': "So we're going to move on.", 'start': 581.968, 'duration': 0.8}, {'end': 584.609, 'text': "I don't want this to be too, too long.", 'start': 582.828, 'duration': 1.781}, {'end': 586.11, 'text': 'I want to keep it under 90 minutes.', 'start': 584.629, 'duration': 1.481}, {'end': 589.692, 'text': "So we're going to move on to strings.", 'start': 586.75, 'duration': 2.942}, {'end': 591.833, 'text': "OK, so let's open up strings dot pi.", 'start': 589.712, 'duration': 2.121}, {'end': 598.815, 'text': 'And what I really want to go over is is like inserting variables into strings, formatting them.', 'start': 592.713, 'duration': 6.102}, {'end': 602.556, 'text': 'And I want to look at some of the string methods and how how we call those.', 'start': 598.895, 'duration': 3.661}, {'end': 606.097, 'text': 'OK, all strings have methods attached to them.', 'start': 602.576, 'duration': 3.521}, {'end': 607.478, 'text': "And we're going to look at some of those.", 'start': 606.377, 'duration': 1.101}, {'end': 613.139, 'text': "So let's set a variable up here, a couple of variables, one of name will say Brad.", 'start': 608.378, 'duration': 4.761}, {'end': 617.641, 'text': "And let's do age, which will be an int of 37.", 'start': 613.96, 'duration': 3.681}, {'end': 619.861, 'text': 'OK, now to concatenate.', 'start': 617.641, 'duration': 2.22}, {'end': 628.679, 'text': 'which means basically to to insert a variable into a string.', 'start': 624.778, 'duration': 3.901}, {'end': 633.321, 'text': 'We do that pretty much the same way that we would in JavaScript.', 'start': 629.82, 'duration': 3.501}], 'summary': 'The tutorial covers string manipulation, including inserting variables and using string methods, aiming to keep it under 90 minutes.', 'duration': 53.874, 'max_score': 579.447, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs579447.jpg'}, {'end': 713.788, 'src': 'embed', 'start': 655.808, 'weight': 0, 'content': [{'end': 667.393, 'text': "so we would concatenate back to a string and i am space and they'll put a plus sign in the age variable and let's see what happens when we run that.", 'start': 655.808, 'duration': 11.585}, {'end': 674.637, 'text': 'so we get an error because we can only concatenate string or str, and age is an int.', 'start': 667.393, 'duration': 7.244}, {'end': 682.881, 'text': 'so what we would do in this situation if we really wanted to do this is we would cast this to a string, just like i showed you in the last file.', 'start': 674.637, 'duration': 8.244}, {'end': 687.765, 'text': 'so we just wrap that in str and run it, and now it works.', 'start': 682.881, 'duration': 4.884}, {'end': 698.192, 'text': "now there's better ways to to do this to insert variables into um, into strings, so we can do string formatting,", 'start': 687.765, 'duration': 10.427}, {'end': 702.395, 'text': 'and one way is to do positional arguments.', 'start': 698.192, 'duration': 4.203}, {'end': 706.338, 'text': "so let's say arguments by position.", 'start': 702.395, 'duration': 3.943}, {'end': 711.627, 'text': "We're gonna say print, and I'm gonna put these curly braces in here.", 'start': 708.184, 'duration': 3.443}, {'end': 713.788, 'text': "Okay, Actually, you know what we'll do.", 'start': 711.647, 'duration': 2.141}], 'summary': 'Casting age to string solves concatenation error. other methods like string formatting can be used for variable insertion.', 'duration': 57.98, 'max_score': 655.808, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs655808.jpg'}, {'end': 888.614, 'src': 'embed', 'start': 858.555, 'weight': 4, 'content': [{'end': 866.617, 'text': "Hello, world, our lowercase, and let's say we want to capitalize.", 'start': 858.555, 'duration': 8.062}, {'end': 874.077, 'text': 'String So we can we can actually use a method called capitalize.', 'start': 869.131, 'duration': 4.946}, {'end': 881.867, 'text': "So I'm going to do a print and then all we have to do is take that string and then dot the met whatever the method is in this case capitalize.", 'start': 874.097, 'duration': 7.77}, {'end': 884.951, 'text': 'OK Make sure we put parentheses.', 'start': 881.887, 'duration': 3.064}, {'end': 888.614, 'text': "Okay, because it's a method which is basically a function.", 'start': 885.452, 'duration': 3.162}], 'summary': 'Demonstrating how to capitalize a string using the capitalize method.', 'duration': 30.059, 'max_score': 858.555, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs858555.jpg'}, {'end': 1001.197, 'src': 'heatmap', 'start': 919.162, 'weight': 3, 'content': [{'end': 920.083, 'text': 'We also have lower.', 'start': 919.162, 'duration': 0.921}, {'end': 922.785, 'text': 'We have swap case, which will swap the cases.', 'start': 920.103, 'duration': 2.682}, {'end': 931.833, 'text': "This len is actually a function that can be used on strings, lists, basically any data type, and it's going to get the length.", 'start': 924.166, 'duration': 7.667}, {'end': 935.255, 'text': 'So in this case, it would get the amount of characters in the string.', 'start': 931.953, 'duration': 3.302}, {'end': 938.082, 'text': 'also have a replace method.', 'start': 936.141, 'duration': 1.941}, {'end': 947.569, 'text': 'so if we wanted to take the word world and replace it with everyone, if we were to print this out, it would say hello, everyone count.', 'start': 938.082, 'duration': 9.487}, {'end': 950.951, 'text': 'so if we want to have a substring like just h,', 'start': 947.569, 'duration': 3.382}, {'end': 960.098, 'text': "we could count the number of h's inside the string starts with is going to return a true or false value based on how it starts.", 'start': 950.951, 'duration': 9.147}, {'end': 963.06, 'text': 'so this would return true, because our string does start with.', 'start': 960.098, 'duration': 2.962}, {'end': 966.764, 'text': "hello Ends with is the same thing, only it's going the other way.", 'start': 963.06, 'duration': 3.704}, {'end': 967.666, 'text': "It's ends with.", 'start': 966.824, 'duration': 0.842}, {'end': 971.631, 'text': 'This would return true because our string does end with D.', 'start': 967.726, 'duration': 3.905}, {'end': 977.619, 'text': 'Split is going to take our string and turn it into a list, which is basically an array.', 'start': 971.631, 'duration': 5.988}, {'end': 981.86, 'text': "And it'll have all the words in the list.", 'start': 979.338, 'duration': 2.522}, {'end': 987.505, 'text': 'Find is going to find the position of a character.', 'start': 983.021, 'duration': 4.484}, {'end': 990.287, 'text': "So in this case, it's going to look for the first R.", 'start': 987.965, 'duration': 2.322}, {'end': 993.11, 'text': "It's going to give you the number, basically the position number.", 'start': 990.287, 'duration': 2.823}, {'end': 997.294, 'text': 'Is alphanumeric, alphabetic, and numeric.', 'start': 994.191, 'duration': 3.103}, {'end': 1001.197, 'text': 'These are all going to return either true or false based on if all the values are correct.', 'start': 997.354, 'duration': 3.843}], 'summary': 'String methods like len, replace, startswith, endswith, split, find, isalnum return boolean or numeric values based on string operations.', 'duration': 82.035, 'max_score': 919.162, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs919162.jpg'}, {'end': 1044.262, 'src': 'embed', 'start': 1017.454, 'weight': 7, 'content': [{'end': 1021.438, 'text': 'Find is gonna look for the position of the first R, which as you can see is eight.', 'start': 1017.454, 'duration': 3.984}, {'end': 1027.219, 'text': 'All of these, the alphanumeric, alphabetic, and numeric, these will all be false.', 'start': 1023.038, 'duration': 4.181}, {'end': 1029.88, 'text': 'And the reason for that is because of the space.', 'start': 1027.239, 'duration': 2.641}, {'end': 1035.101, 'text': "If I were to get rid of that space, it's now alpha and alphanumeric.", 'start': 1030.4, 'duration': 4.701}, {'end': 1037.082, 'text': 'So we should get true for those two.', 'start': 1035.241, 'duration': 1.841}, {'end': 1044.262, 'text': "So if we run that again, you'll see we have true for both alphanumeric and alpha.", 'start': 1037.242, 'duration': 7.02}], 'summary': "The first r's position is at 8, and after removing space, alphanumeric and alphabetic are now true.", 'duration': 26.808, 'max_score': 1017.454, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs1017454.jpg'}], 'start': 579.447, 'title': 'Python string manipulation', 'summary': 'Covers python string manipulation, including insertion of variables, formatting, methods like capitalize, upper, lower, swap case, character count, search and replace, substring, list conversion, position finding, and verification of characters, designed to be completed within 90 minutes.', 'chapters': [{'end': 682.881, 'start': 579.447, 'title': 'Introduction to python strings', 'summary': 'Introduces python strings, covering topics such as inserting variables into strings, formatting, and string methods, aiming to keep the session under 90 minutes.', 'duration': 103.434, 'highlights': ['All strings have methods attached to them, and the session will cover how to insert variables into strings and formatting, aiming to keep the session under 90 minutes.', 'The importance of concatenating variables into strings is highlighted, with an example provided using Python, emphasizing the need to convert non-string variables to strings for successful concatenation.', 'An example of concatenating variables into strings using Python, with an error encountered due to attempting to concatenate an int variable, emphasizing the need to cast non-string variables to strings for successful concatenation.']}, {'end': 931.833, 'start': 682.881, 'title': 'Python string formatting and methods', 'summary': 'Covers python string formatting techniques using positional arguments and f-strings, as well as demonstrating string methods such as capitalize, upper, lower, and swap case.', 'duration': 248.952, 'highlights': ['The chapter introduces Python string formatting techniques such as positional arguments and f-strings, providing examples and comparisons. It covers the usage of curly braces as placeholders for variables, demonstrating the dot format method and the usage of f-strings for direct variable insertion.', 'The chapter explains and demonstrates various string methods including capitalize, upper, lower, and swap case. It showcases the usage of string methods like capitalize, upper, lower, and swap case, with examples and their respective outputs.']}, {'end': 1037.082, 'start': 931.953, 'title': 'String methods and functions', 'summary': 'Provides an overview of various string methods and functions, including character count, search and replace, substring, list conversion, position finding, and verification of alphanumeric, alphabetic, and numeric characters, with examples of their application and outcomes.', 'duration': 105.129, 'highlights': ["The split method converts the string into a list, demonstrating its application with the example 'Hello World' being split into a list.", "The find method locates the position of a specified character within the string, illustrated by finding the position of the first 'R' as 8.", 'The verification methods for alphanumeric, alphabetic, and numeric characters return false due to the presence of space, with the potential for them to return true upon removal of the space.']}], 'duration': 457.635, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs579447.jpg', 'highlights': ['The chapter introduces Python string formatting techniques such as positional arguments and f-strings, providing examples and comparisons. It covers the usage of curly braces as placeholders for variables, demonstrating the dot format method and the usage of f-strings for direct variable insertion.', 'All strings have methods attached to them, and the session will cover how to insert variables into strings and formatting, aiming to keep the session under 90 minutes.', 'The importance of concatenating variables into strings is highlighted, with an example provided using Python, emphasizing the need to convert non-string variables to strings for successful concatenation.', "The split method converts the string into a list, demonstrating its application with the example 'Hello World' being split into a list.", 'The chapter explains and demonstrates various string methods including capitalize, upper, lower, and swap case. It showcases the usage of string methods like capitalize, upper, lower, and swap case, with examples and their respective outputs.', "The find method locates the position of a specified character within the string, illustrated by finding the position of the first 'R' as 8.", 'An example of concatenating variables into strings using Python, with an error encountered due to attempting to concatenate an int variable, emphasizing the need to cast non-string variables to strings for successful concatenation.', 'The verification methods for alphanumeric, alphabetic, and numeric characters return false due to the presence of space, with the potential for them to return true upon removal of the space.']}, {'end': 1917.342, 'segs': [{'end': 1109.046, 'src': 'embed', 'start': 1057.148, 'weight': 0, 'content': [{'end': 1061.77, 'text': "So we're now going to talk about lists, which are very, very important in Python.", 'start': 1057.148, 'duration': 4.622}, {'end': 1064.111, 'text': "They're basically like arrays.", 'start': 1062.431, 'duration': 1.68}, {'end': 1072.155, 'text': "So if you've dealt with JavaScript or PHP and many other languages, it's similar to an array.", 'start': 1064.231, 'duration': 7.924}, {'end': 1076.497, 'text': "OK, so let's first just create a list.", 'start': 1072.435, 'duration': 4.062}, {'end': 1083.259, 'text': 'And the definition is a collection which is ordered and changeable.', 'start': 1077.997, 'duration': 5.262}, {'end': 1085.04, 'text': 'They also allow duplicate members.', 'start': 1083.299, 'duration': 1.741}, {'end': 1090.882, 'text': "OK, there's other data types that, for instance, are unordered and don't allow duplicate members.", 'start': 1085.06, 'duration': 5.822}, {'end': 1093.223, 'text': "And we'll get into some of those in a little bit.", 'start': 1090.962, 'duration': 2.261}, {'end': 1095.764, 'text': "But let's go ahead and create a list.", 'start': 1093.844, 'duration': 1.92}, {'end': 1101.987, 'text': "So I'm going to say numbers variable called numbers, and we'll set it to some brackets.", 'start': 1096.245, 'duration': 5.742}, {'end': 1104.916, 'text': "And we'll just put a bunch of numbers in here.", 'start': 1102.831, 'duration': 2.085}, {'end': 1106.7, 'text': "Okay, so that's one way to do it.", 'start': 1104.936, 'duration': 1.764}, {'end': 1109.046, 'text': 'We can also use a constructor.', 'start': 1106.76, 'duration': 2.286}], 'summary': 'Lists in python are ordered, changeable, and allow duplicate members, similar to arrays in other languages.', 'duration': 51.898, 'max_score': 1057.148, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs1057148.jpg'}, {'end': 1277.355, 'src': 'embed', 'start': 1218.155, 'weight': 2, 'content': [{'end': 1221.638, 'text': 'So if I go ahead and run this, we get oranges.', 'start': 1218.155, 'duration': 3.483}, {'end': 1226.061, 'text': "Now, let's say we wanted to get the length of a list.", 'start': 1222.578, 'duration': 3.483}, {'end': 1232.505, 'text': 'So for that, we use the same Len function that we use for a string.', 'start': 1227.922, 'duration': 4.583}, {'end': 1236.268, 'text': 'We just do Len and then pass in fruits.', 'start': 1232.545, 'duration': 3.723}, {'end': 1239.29, 'text': 'OK, so if I go ahead and run that, we get four.', 'start': 1236.288, 'duration': 3.002}, {'end': 1244.399, 'text': "because there's four items or values in this list.", 'start': 1240.558, 'duration': 3.841}, {'end': 1250.58, 'text': "Let's say we wanna add to it, or I should say append, we wanna add to the end of the list.", 'start': 1244.839, 'duration': 5.741}, {'end': 1259.902, 'text': "So we'll say append to list, and we can do that by just saying fruits.append, and then whatever we want, let's say mangoes.", 'start': 1251, 'duration': 8.902}, {'end': 1267.864, 'text': "And down here, we'll just go ahead and print fruits, and let's run this, oops.", 'start': 1261.302, 'duration': 6.562}, {'end': 1275.912, 'text': "And it's just going to go ahead and add mangoes to our list and then print it out.", 'start': 1270.621, 'duration': 5.291}, {'end': 1277.355, 'text': 'All right.', 'start': 1277.034, 'duration': 0.321}], 'summary': "Using python list functions to manipulate and analyze data, resulting in 4 items with the addition of 'mangoes'.", 'duration': 59.2, 'max_score': 1218.155, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs1218155.jpg'}, {'end': 1370.724, 'src': 'embed', 'start': 1339.035, 'weight': 4, 'content': [{'end': 1342.696, 'text': 'So up here, we use the remove method, and we pass in the value.', 'start': 1339.035, 'duration': 3.661}, {'end': 1346.877, 'text': 'We can also remove it by the position by using the pop method.', 'start': 1342.736, 'duration': 4.141}, {'end': 1349.858, 'text': "Let's say remove with pop.", 'start': 1346.897, 'duration': 2.961}, {'end': 1353.479, 'text': "So we'll say fruits.pop.", 'start': 1350.158, 'duration': 3.321}, {'end': 1357.38, 'text': "And let's take strawberries out, which is in position two.", 'start': 1354.519, 'duration': 2.861}, {'end': 1362.021, 'text': 'So if we run that, now you can see strawberries is gone.', 'start': 1357.4, 'duration': 4.621}, {'end': 1370.724, 'text': 'We can also reverse the list by saying fruits.reverse.', 'start': 1362.756, 'duration': 7.968}], 'summary': 'Demonstrated list manipulation methods: remove, pop, and reverse.', 'duration': 31.689, 'max_score': 1339.035, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs1339035.jpg'}, {'end': 1485.923, 'src': 'embed', 'start': 1461.667, 'weight': 5, 'content': [{'end': 1469.352, 'text': 'so a tuple is a collection which is ordered and unchangeable, okay, and also it does allow duplicate members.', 'start': 1461.667, 'duration': 7.685}, {'end': 1472.314, 'text': 'the important thing here is unchangeable, okay.', 'start': 1469.352, 'duration': 2.962}, {'end': 1473.735, 'text': 'so let me give you some examples.', 'start': 1472.314, 'duration': 1.421}, {'end': 1476.597, 'text': "i'm going to clear this up down here.", 'start': 1473.735, 'duration': 2.862}, {'end': 1482.201, 'text': "and let's create a tuple.", 'start': 1476.597, 'duration': 5.604}, {'end': 1485.923, 'text': "so we'll call this fruits, just like we did with the array.", 'start': 1482.201, 'duration': 3.722}], 'summary': 'A tuple is an ordered, unchangeable collection allowing duplicates.', 'duration': 24.256, 'max_score': 1461.667, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs1461667.jpg'}, {'end': 1759.8, 'src': 'embed', 'start': 1728.301, 'weight': 6, 'content': [{'end': 1728.601, 'text': 'All right.', 'start': 1728.301, 'duration': 0.3}, {'end': 1730.182, 'text': "So let's move on to sets.", 'start': 1728.621, 'duration': 1.561}, {'end': 1731.703, 'text': "So I'm going to clear this out.", 'start': 1730.722, 'duration': 0.981}, {'end': 1735.385, 'text': 'Now a set is a collection which is unordered.', 'start': 1732.323, 'duration': 3.062}, {'end': 1738.107, 'text': "Okay So it's unordered and it's unindexed.", 'start': 1735.405, 'duration': 2.702}, {'end': 1740.829, 'text': "There's no duplicate members.", 'start': 1739.128, 'duration': 1.701}, {'end': 1744.571, 'text': "Okay So I'll show you exactly what that means.", 'start': 1741.449, 'duration': 3.122}, {'end': 1745.832, 'text': 'But to create a set.', 'start': 1744.711, 'duration': 1.121}, {'end': 1751.008, 'text': "Let's use fruits.", 'start': 1749.847, 'duration': 1.161}, {'end': 1753.692, 'text': 'We already used fruits up here.', 'start': 1752.29, 'duration': 1.402}, {'end': 1755.734, 'text': "We'll do fruits set.", 'start': 1753.992, 'duration': 1.742}, {'end': 1759.8, 'text': 'And a set is created with curly braces.', 'start': 1757.437, 'duration': 2.363}], 'summary': 'Sets are unordered, unindexed collections with no duplicate members. created with curly braces.', 'duration': 31.499, 'max_score': 1728.301, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs1728301.jpg'}, {'end': 1861.729, 'src': 'embed', 'start': 1819.001, 'weight': 7, 'content': [{'end': 1819.962, 'text': 'We can also add.', 'start': 1819.001, 'duration': 0.961}, {'end': 1827.957, 'text': 'set and we can do that by saying fruit set.', 'start': 1822.713, 'duration': 5.244}, {'end': 1833.001, 'text': "and then we can use the add method and let's say we want to add grape.", 'start': 1827.957, 'duration': 5.044}, {'end': 1836.724, 'text': 'okay, and actually we need to print this out.', 'start': 1833.001, 'duration': 3.723}, {'end': 1847.993, 'text': "so let's say print fruit set and we'll run it and down here you can see that grape has been added to the set.", 'start': 1836.724, 'duration': 11.269}, {'end': 1853.426, 'text': 'If we want to remove something, we can use the remove method.', 'start': 1850.245, 'duration': 3.181}, {'end': 1861.729, 'text': 'So we could say fruit set.', 'start': 1856.887, 'duration': 4.842}], 'summary': "Demonstrating the addition and removal of items in a set, with an example of adding 'grape' to the set and verifying the addition.", 'duration': 42.728, 'max_score': 1819.001, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs1819001.jpg'}], 'start': 1037.242, 'title': 'Python data structures', 'summary': 'Covers python lists and methods, including creation and manipulation of lists with various methods like adding, removing, inserting, reversing, sorting, and changing values. it also discusses tuples and sets with examples on creation, manipulation, properties, and usage.', 'chapters': [{'end': 1460.32, 'start': 1037.242, 'title': 'Python lists and methods', 'summary': 'Covers the creation and manipulation of lists in python, including methods such as adding, removing, inserting, reversing, sorting, and changing values, with examples and explanations of each method.', 'duration': 423.078, 'highlights': ['Creation of lists using both brackets and the list constructor, with examples of creating lists with numbers and strings Lists can be created using brackets or the list constructor, with examples of creating lists with numbers and strings.', 'Explanation of zero-based indexing in lists and retrieving a value by index, with an example of retrieving a value from a list Lists use zero-based indexing, and a value can be retrieved by index, demonstrated by retrieving a value from a list.', 'Demonstration of using the Len function to get the length of a list, with an example of getting the length of a list The Len function can be used to get the length of a list, as demonstrated by getting the length of a list.', 'Illustration of adding an item to the end of a list using the append method, with an example of appending an item to a list The append method adds an item to the end of a list, as shown by appending an item to a list.', 'Examples of removing items from a list using the remove and pop methods, with an explanation of both methods Items can be removed from a list using the remove and pop methods, with examples and explanations of both methods.']}, {'end': 1917.342, 'start': 1461.667, 'title': 'Python tuples and sets', 'summary': 'Covers the creation, manipulation, and properties of tuples and sets in python, highlighting the differences from lists and providing examples of usage, such as creating, adding, removing, and clearing elements, and checking for membership and length.', 'duration': 455.675, 'highlights': ['Tuples are ordered, unchangeable collections that allow duplicate members, with examples of creation and usage provided.', 'The unchangeable nature of tuples is explained, including the requirement of a trailing comma for single values and the inability to modify values.', 'Sets are described as unordered and unindexed collections that do not allow duplicate members, with examples of creation and manipulation using add, remove, clear, and membership check methods.', 'The process of adding, removing, and clearing elements from sets is demonstrated through code examples.', 'The different outcomes of clearing a set and deleting it altogether are explained, highlighting the distinctions.', 'The usage of the len method to determine the length of a tuple is demonstrated.']}], 'duration': 880.1, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs1037242.jpg', 'highlights': ['Covers python lists and methods, including creation and manipulation of lists with various methods like adding, removing, inserting, reversing, sorting, and changing values.', 'Creation of lists using both brackets and the list constructor, with examples of creating lists with numbers and strings.', 'Demonstration of using the Len function to get the length of a list, with an example of getting the length of a list.', 'Illustration of adding an item to the end of a list using the append method, with an example of appending an item to a list.', 'Examples of removing items from a list using the remove and pop methods, with an explanation of both methods.', 'Tuples are ordered, unchangeable collections that allow duplicate members, with examples of creation and usage provided.', 'Sets are described as unordered and unindexed collections that do not allow duplicate members, with examples of creation and manipulation using add, remove, clear, and membership check methods.', 'The process of adding, removing, and clearing elements from sets is demonstrated through code examples.', 'The usage of the len method to determine the length of a tuple is demonstrated.']}, {'end': 2955.069, 'segs': [{'end': 2173.586, 'src': 'embed', 'start': 2138.182, 'weight': 3, 'content': [{'end': 2143.745, 'text': 'Now, in JavaScript, we would do dot name with an object literal in Python with a dictionary.', 'start': 2138.182, 'duration': 5.563}, {'end': 2147.027, 'text': "We're going to use brackets and say person name like that.", 'start': 2143.785, 'duration': 3.242}, {'end': 2150.449, 'text': "I'm sorry, first name.", 'start': 2149.468, 'duration': 0.981}, {'end': 2156.282, 'text': "OK, so let's go ahead and run that and we get John.", 'start': 2153.101, 'duration': 3.181}, {'end': 2159.883, 'text': "Now, there's another way to do that, do this, and that's using the get method.", 'start': 2156.682, 'duration': 3.201}, {'end': 2173.586, 'text': "So if we say print person dot get and then we can just pass in as a parameter the what we want to get, which let's do the last name.", 'start': 2159.983, 'duration': 13.603}], 'summary': 'Comparing accessing object properties in javascript and python, using dot notation and get method.', 'duration': 35.404, 'max_score': 2138.182, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs2138182.jpg'}, {'end': 2267.947, 'src': 'embed', 'start': 2234.774, 'weight': 0, 'content': [{'end': 2240.496, 'text': 'And what it does is it gives us this dict keys and then first name, last name, age and phone.', 'start': 2234.774, 'duration': 5.722}, {'end': 2243.617, 'text': 'At the same time, we can get the items.', 'start': 2241.416, 'duration': 2.201}, {'end': 2252.24, 'text': "So let's change this to items and we'll save that.", 'start': 2245.037, 'duration': 7.203}, {'end': 2259.4, 'text': 'And it gives us this right here, dict items and first name John, last name Doe.', 'start': 2253.835, 'duration': 5.565}, {'end': 2262.102, 'text': "So that's how we can get items.", 'start': 2260.601, 'duration': 1.501}, {'end': 2267.947, 'text': "Now I'm going to show you how we can copy a dictionary.", 'start': 2262.682, 'duration': 5.265}], 'summary': 'Demonstrates accessing and copying dictionary items.', 'duration': 33.173, 'max_score': 2234.774, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs2234774.jpg'}, {'end': 2603.041, 'src': 'embed', 'start': 2575.631, 'weight': 2, 'content': [{'end': 2578.832, 'text': 'So to define a function, we actually use the def keyword.', 'start': 2575.631, 'duration': 3.201}, {'end': 2582.013, 'text': 'OK, so we want to define say hello.', 'start': 2578.852, 'duration': 3.161}, {'end': 2590.295, 'text': 'And instead of doing this like we do in many languages, we put a colon and then we just want to indent one over from here.', 'start': 2582.933, 'duration': 7.362}, {'end': 2591.975, 'text': 'OK And in V.S.', 'start': 2590.315, 'duration': 1.66}, {'end': 2597.177, 'text': 'code and in any good text editor or ID, it usually does this for you.', 'start': 2592.035, 'duration': 5.142}, {'end': 2603.041, 'text': "So, let's go ahead and just print, and I'm actually going to take in a parameter here.", 'start': 2598.177, 'duration': 4.864}], 'summary': 'Defining a function in python using the def keyword and indentation for parameter input.', 'duration': 27.41, 'max_score': 2575.631, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs2575631.jpg'}], 'start': 1917.402, 'title': 'Python dictionaries and functions', 'summary': 'Introduces dictionaries as unordered, changeable, and indexed collections with no duplicate members. it explains the basics of python dictionaries, including creating, accessing values, and adding key-value pairs, as well as covering functions, syntax, default arguments, return values, and lambda functions.', 'chapters': [{'end': 1981.33, 'start': 1917.402, 'title': 'Introduction to dictionaries', 'summary': 'Introduces dictionaries as unordered, changeable, and indexed collections with no duplicate members, showcasing the behavior of adding duplicate items to sets.', 'duration': 63.928, 'highlights': ['Dictionaries are introduced as unordered, changeable, and indexed collections.', 'Sets are mentioned as having no duplicate members and the behavior of not adding duplicate items is showcased.', 'The transcript includes a demonstration of adding an item that is already present in the set, highlighting the behavior of sets with no duplicate members.']}, {'end': 2267.947, 'start': 1981.93, 'title': 'Python dictionaries basics', 'summary': 'Explains the basics of python dictionaries, including creating dictionaries, using constructors, accessing values, adding key-value pairs, and retrieving keys and items.', 'duration': 286.017, 'highlights': ['The chapter explains the basics of Python dictionaries, including creating dictionaries, using constructors, accessing values, adding key-value pairs, and retrieving keys and items.', 'Creating a dictionary involves using key-value pairs and can be accessed and printed with the class of dict using Python 3.', 'Using constructors to create a dictionary is showcased, demonstrating how to assign key-value pairs and print the class of dict.', 'Accessing values from a dictionary can be done using brackets and the specific key or with the get method, both illustrated with quantifiable examples.', 'The process of adding a key-value pair to a dictionary is demonstrated by adding a phone number and printing the updated dictionary.', 'Retrieving keys and items from a dictionary is exemplified by showcasing the use of the keys and items methods to obtain the respective information.']}, {'end': 2955.069, 'start': 2269.228, 'title': 'Python dictionaries and functions', 'summary': 'Covers python dictionaries, including creating, modifying, and removing items, and then moves on to functions, explaining the syntax, default arguments, return values, and lambda functions.', 'duration': 685.841, 'highlights': ["Python dictionaries: creating, modifying, and removing items The chapter explains the process of creating a dictionary in Python, making modifications by adding or removing items, and demonstrates using methods like 'pop' and 'clear' to manipulate dictionary items.", "Functions in Python: syntax, default arguments, and return values The chapter discusses the syntax of functions in Python, including the use of the 'def' keyword, default arguments, and return values, with an example of a function called 'say hello' and another called 'get sum'.", "Lambda functions in Python: syntax and usage The chapter introduces lambda functions in Python, explaining the syntax and usage, and demonstrates how to convert a regular function to a lambda function, with an example of a lambda function called 'get sum'."]}], 'duration': 1037.667, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs1917402.jpg', 'highlights': ['The chapter explains the basics of Python dictionaries, including creating dictionaries, using constructors, accessing values, adding key-value pairs, and retrieving keys and items.', "Python dictionaries: creating, modifying, and removing items The chapter explains the process of creating a dictionary in Python, making modifications by adding or removing items, and demonstrates using methods like 'pop' and 'clear' to manipulate dictionary items.", "Functions in Python: syntax, default arguments, and return values The chapter discusses the syntax of functions in Python, including the use of the 'def' keyword, default arguments, and return values, with an example of a function called 'say hello' and another called 'get sum'.", 'Accessing values from a dictionary can be done using brackets and the specific key or with the get method, both illustrated with quantifiable examples.']}, {'end': 4361.168, 'segs': [{'end': 3006.914, 'src': 'embed', 'start': 2980.997, 'weight': 0, 'content': [{'end': 2986.078, 'text': "You test to see if something's true or false and you do something based on that condition.", 'start': 2980.997, 'duration': 5.081}, {'end': 2989.2, 'text': "So I'm just going to create a couple of variables up here.", 'start': 2986.778, 'duration': 2.422}, {'end': 2993.484, 'text': "Let's say X equals 10, Y equals 5.", 'start': 2989.24, 'duration': 4.244}, {'end': 2999.829, 'text': 'And when we do an if statement, we can use comparison operators like equals to not equals,', 'start': 2993.484, 'duration': 6.345}, {'end': 3004.652, 'text': 'to greater than less than greater than or equals less than or equals.', 'start': 2999.829, 'duration': 4.823}, {'end': 3006.914, 'text': "So let's do an if statement here.", 'start': 3005.113, 'duration': 1.801}], 'summary': 'Using comparison operators in programming to create conditional statements with variables x equals 10 and y equals 5.', 'duration': 25.917, 'max_score': 2980.997, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs2980997.jpg'}, {'end': 3589.119, 'src': 'embed', 'start': 3549.44, 'weight': 1, 'content': [{'end': 3552.845, 'text': 'Loops are an important part of any language.', 'start': 3549.44, 'duration': 3.405}, {'end': 3562.158, 'text': 'A loop is used for iterating over a sequence that is either a list, a tuple, a dictionary, a set, or a string, or a custom language.', 'start': 3553.446, 'duration': 8.712}, {'end': 3571.586, 'text': "condition So let's do a simple for loop that loops over a dictionary.", 'start': 3564.3, 'duration': 7.286}, {'end': 3577.37, 'text': "So we're going to say people equals I'm sorry, not a dictionary, a list.", 'start': 3571.706, 'duration': 5.664}, {'end': 3579.131, 'text': "So let's say John.", 'start': 3578.111, 'duration': 1.02}, {'end': 3588.278, 'text': 'Paul Sarah and Susan.', 'start': 3581.553, 'duration': 6.725}, {'end': 3589.119, 'text': 'All right.', 'start': 3588.298, 'duration': 0.821}], 'summary': 'Loops are crucial in programming for iterating over sequences such as lists, tuples, dictionaries, sets, and strings.', 'duration': 39.679, 'max_score': 3549.44, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs3549440.jpg'}, {'end': 3914.649, 'src': 'embed', 'start': 3887.27, 'weight': 3, 'content': [{'end': 3891.814, 'text': "so let's try it out, let's clear this and run it, and we get count up to ten.", 'start': 3887.27, 'duration': 4.544}, {'end': 3896.037, 'text': 'okay, because we said less than or equals to ten.', 'start': 3891.814, 'duration': 4.223}, {'end': 3900.941, 'text': 'if we just did less than, it would bring us to nine.', 'start': 3896.037, 'duration': 4.904}, {'end': 3902.662, 'text': 'All right.', 'start': 3902.282, 'duration': 0.38}, {'end': 3903.503, 'text': "so that's loops.", 'start': 3902.662, 'duration': 0.841}, {'end': 3905.564, 'text': "Next thing we're going to look at is modules.", 'start': 3903.563, 'duration': 2.001}, {'end': 3912.408, 'text': 'Okay, so a module is basically a file containing a set of functions to include in your application.', 'start': 3905.784, 'duration': 6.624}, {'end': 3914.649, 'text': 'You have core Python modules.', 'start': 3912.808, 'duration': 1.841}], 'summary': 'Introduction to loops and modules in python, with a focus on counting up to ten and the definition of a module.', 'duration': 27.379, 'max_score': 3887.27, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs3887270.jpg'}, {'end': 4165.148, 'src': 'embed', 'start': 4138.413, 'weight': 2, 'content': [{'end': 4148.263, 'text': 'Now Python has a package manager called Pip and again comparing it to JavaScript where you have no JS you have your NPM package manager.', 'start': 4138.413, 'duration': 9.85}, {'end': 4151.264, 'text': 'You know, you have Ruby gems.', 'start': 4149.323, 'duration': 1.941}, {'end': 4158.786, 'text': 'A lot of different languages have different package managers for installing external modules or programs.', 'start': 4151.804, 'duration': 6.982}, {'end': 4160.287, 'text': 'Excuse me.', 'start': 4159.867, 'duration': 0.42}, {'end': 4165.148, 'text': 'So to install something with pip, you want to do pip install.', 'start': 4161.027, 'duration': 4.121}], 'summary': 'Python has a package manager called pip for installing external modules or programs.', 'duration': 26.735, 'max_score': 4138.413, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs4138412.jpg'}], 'start': 2955.169, 'title': 'Python programming essentials', 'summary': 'Covers python conditionals, operators, loops, iterations, modules, and package management. it includes if-else statements, for loops, while loops, core python modules like datetime and time, and package management using pip, with examples and outcomes.', 'chapters': [{'end': 3548.92, 'start': 2955.169, 'title': 'Python conditionals and operators', 'summary': 'Covers the basics of python conditionals and operators, including if statements, if-else statements, elif statements, nested if statements, comparison operators, membership operators, and identity operators, showcasing examples and their outcomes.', 'duration': 593.751, 'highlights': ['The chapter covers if statements, if-else statements, and elif statements, explaining the usage of comparison operators like equals to, not equals, greater than, less than, greater than or equals, and less than or equals, with an example of X greater than Y and Y greater than X, showcasing the outcomes.', "It demonstrates the usage of nested if statements, providing an example of a nested if statement and suggesting a cleaner way to implement the same condition using logical operators like 'and', showcasing the outcomes.", "The chapter explains membership operators like 'in' and 'not in', showcasing an example of using 'in' and 'not in' to test if a value is in a list, and provides an example of identity operators like 'is' and 'is not', showcasing the outcomes."]}, {'end': 3887.27, 'start': 3549.44, 'title': 'Python loops and iterations', 'summary': 'Discusses the usage of for loops, including iterating over lists and dictionaries, using break and continue statements, utilizing the range function, and implementing while loops in python, with examples and explanations.', 'duration': 337.83, 'highlights': ['The chapter discusses the usage of for loops, including iterating over lists and dictionaries The chapter explains how to use for loops to iterate over different data types such as lists and dictionaries in Python.', 'Using break and continue statements in Python loops The chapter demonstrates the usage of break and continue statements to control the flow of a loop based on specific conditions, with examples of breaking out of a loop or skipping iterations.', 'Utilizing the range function for iteration The chapter provides examples of using the range function to generate a sequence of numbers for iteration, including iterating over the length of a list and creating custom ranges.', 'Implementing while loops in Python The chapter explains the concept of while loops in Python, including setting a condition and executing a set of statements as long as the condition is true, with an example of incrementing a count variable.']}, {'end': 4103.296, 'start': 3887.27, 'title': 'Python modules and loops', 'summary': 'Introduces loops and modules in python, with an example of importing and using core python modules like datetime and time, including their methods and properties.', 'duration': 216.026, 'highlights': ["The chapter introduces loops as it demonstrates a count up to ten using a loop with the condition 'less than or equals to ten', highlighting the functionality and purpose of loops in Python.", 'The chapter discusses the concept of modules and their types, including core Python modules, modules installable with pip package manager like Django, and custom modules, providing an overview of the different types of modules available in Python.', 'The chapter provides an example of importing a core Python module, datetime, and utilizing its methods and properties such as date.today() to obtain the current date, demonstrating the process of importing, accessing, and using core Python modules.', "The chapter demonstrates importing the time module, creating a variable 'timestamp', and utilizing the time.time() method to obtain the current timestamp, showcasing the process of importing and utilizing a core Python module with a specific method."]}, {'end': 4361.168, 'start': 4104.296, 'title': 'Python core modules and package management', 'summary': 'Discusses python core modules like time and package management using pip, including the installation of external modules, creating virtual environments, and listing installed modules using pip3-freeze.', 'duration': 256.872, 'highlights': ["Python has a package manager called Pip, similar to other languages' package managers like NPM for JavaScript. Python has a package manager called Pip, similar to other languages' package managers like NPM for JavaScript, for installing external modules or programs.", 'Installing external modules using Pip3 and creating virtual environments for encapsulated installations. Installing external modules using Pip3 and creating virtual environments for encapsulated installations, where installations with Pip are confined to that environment.', 'Importing and utilizing the camel case module to capitalize each word in a given text. Importing and utilizing the camel case module to capitalize each word in a given text, demonstrated by instantiating a camel case object and using the hump method.']}], 'duration': 1405.999, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs2955169.jpg', 'highlights': ['The chapter covers if statements, if-else statements, and elif statements, explaining the usage of comparison operators like equals to, not equals, greater than, less than, greater than or equals, and less than or equals, with an example of X greater than Y and Y greater than X, showcasing the outcomes.', 'The chapter discusses the usage of for loops, including iterating over lists and dictionaries The chapter explains how to use for loops to iterate over different data types such as lists and dictionaries in Python.', "Python has a package manager called Pip, similar to other languages' package managers like NPM for JavaScript. Python has a package manager called Pip, similar to other languages' package managers like NPM for JavaScript, for installing external modules or programs.", "The chapter introduces loops as it demonstrates a count up to ten using a loop with the condition 'less than or equals to ten', highlighting the functionality and purpose of loops in Python."]}, {'end': 5159.897, 'segs': [{'end': 4411.253, 'src': 'embed', 'start': 4362.75, 'weight': 0, 'content': [{'end': 4370.876, 'text': "So it's a very, very simple module, but it's just an example of how to install something with pip and how to import it and use it.", 'start': 4362.75, 'duration': 8.126}, {'end': 4376.02, 'text': 'So, the last thing I want to do here is create a custom module and use that.', 'start': 4371.657, 'duration': 4.363}, {'end': 4383.726, 'text': 'So, we have this validator.py file, which is already created, already filled out.', 'start': 4376.921, 'duration': 6.805}, {'end': 4386.849, 'text': 'Basically, what this does is it validates an email.', 'start': 4384.267, 'duration': 2.582}, {'end': 4393.576, 'text': 'And we imported the RE, the regular expression module, which is a core module.', 'start': 4387.469, 'duration': 6.107}, {'end': 4400.543, 'text': 'We created a function called validate email, takes in an email, and then checks the length of it.', 'start': 4393.896, 'duration': 6.647}, {'end': 4407.331, 'text': 'And then it uses that regular expression module, which has a match method.', 'start': 4400.944, 'duration': 6.387}, {'end': 4411.253, 'text': 'and passes in a regular expression to validate an email.', 'start': 4407.931, 'duration': 3.322}], 'summary': "Demonstrates how to create and use a simple module for email validation using python's regular expression module.", 'duration': 48.503, 'max_score': 4362.75, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs4362750.jpg'}, {'end': 4431.625, 'src': 'heatmap', 'start': 4362.75, 'weight': 1, 'content': [{'end': 4370.876, 'text': "So it's a very, very simple module, but it's just an example of how to install something with pip and how to import it and use it.", 'start': 4362.75, 'duration': 8.126}, {'end': 4376.02, 'text': 'So, the last thing I want to do here is create a custom module and use that.', 'start': 4371.657, 'duration': 4.363}, {'end': 4383.726, 'text': 'So, we have this validator.py file, which is already created, already filled out.', 'start': 4376.921, 'duration': 6.805}, {'end': 4386.849, 'text': 'Basically, what this does is it validates an email.', 'start': 4384.267, 'duration': 2.582}, {'end': 4393.576, 'text': 'And we imported the RE, the regular expression module, which is a core module.', 'start': 4387.469, 'duration': 6.107}, {'end': 4400.543, 'text': 'We created a function called validate email, takes in an email, and then checks the length of it.', 'start': 4393.896, 'duration': 6.647}, {'end': 4407.331, 'text': 'And then it uses that regular expression module, which has a match method.', 'start': 4400.944, 'duration': 6.387}, {'end': 4411.253, 'text': 'and passes in a regular expression to validate an email.', 'start': 4407.931, 'duration': 3.322}, {'end': 4417.457, 'text': 'Okay, and it returns a boolean, it returns a true or false based on if that is an actual email or not.', 'start': 4411.593, 'duration': 5.864}, {'end': 4420.039, 'text': "So let's say we want to use this as a module.", 'start': 4417.777, 'duration': 2.262}, {'end': 4427.043, 'text': "So I'm going to go back to modules.py and we're going to bring this in.", 'start': 4420.139, 'duration': 6.904}, {'end': 4431.625, 'text': "So let's say import custom module.", 'start': 4427.103, 'duration': 4.522}], 'summary': 'Demonstrating installation and usage of a custom module for email validation', 'duration': 68.875, 'max_score': 4362.75, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs4362750.jpg'}, {'end': 4661.617, 'src': 'heatmap', 'start': 4536.769, 'weight': 0.864, 'content': [{'end': 4540.15, 'text': "So it's using this validate email function.", 'start': 4536.769, 'duration': 3.381}, {'end': 4545.432, 'text': "It's bringing that in from our validator module, which is a custom module that we created.", 'start': 4540.65, 'duration': 4.782}, {'end': 4548.368, 'text': "OK, so that's how you can use custom modules.", 'start': 4546.147, 'duration': 2.221}, {'end': 4549.569, 'text': 'All right.', 'start': 4549.289, 'duration': 0.28}, {'end': 4553.131, 'text': "So now we're going to move on to classes with Python.", 'start': 4549.609, 'duration': 3.522}, {'end': 4557.953, 'text': 'You can do all types of different programming types.', 'start': 4553.171, 'duration': 4.782}, {'end': 4559.554, 'text': 'You know, you can do procedural.', 'start': 4558.093, 'duration': 1.461}, {'end': 4561.595, 'text': 'You can also do object oriented.', 'start': 4559.934, 'duration': 1.661}, {'end': 4565.959, 'text': 'programming and a class is used to create objects.', 'start': 4562.216, 'duration': 3.743}, {'end': 4569.803, 'text': 'okay, an object has properties and methods.', 'start': 4565.959, 'duration': 3.844}, {'end': 4573.366, 'text': 'methods are basically just functions that are associated with it.', 'start': 4569.803, 'duration': 3.563}, {'end': 4579.731, 'text': 'almost everything in python is an object and you can see when we have a string we can call, we can call methods on it.', 'start': 4573.366, 'duration': 6.365}, {'end': 4584.835, 'text': 'a string is an object and almost everything is an object.', 'start': 4579.731, 'duration': 5.104}, {'end': 4589.418, 'text': "so let's go ahead and create a class.", 'start': 4584.835, 'duration': 4.583}, {'end': 4593.121, 'text': "I'm gonna try to do this quick, because we're really running out of time here.", 'start': 4589.418, 'duration': 3.703}, {'end': 4603.088, 'text': "so let's let's create a class called user and if you've created classes in PHP or Java C sharp and it's, it's pretty similar.", 'start': 4593.121, 'duration': 9.967}, {'end': 4612.93, 'text': 'so we can have a constructor, and So a constructor is basically a function that runs when you instantiate an object from a class.', 'start': 4603.088, 'duration': 9.842}, {'end': 4618.471, 'text': 'And we want to define this as double underscore knit, double underscore.', 'start': 4614.17, 'duration': 4.301}, {'end': 4621.292, 'text': 'And this is going to take in self.', 'start': 4618.491, 'duration': 2.801}, {'end': 4626.393, 'text': 'And it can take in other properties as well.', 'start': 4623.653, 'duration': 2.74}, {'end': 4629.834, 'text': "Like let's say this user, we want to have a name.", 'start': 4626.453, 'duration': 3.381}, {'end': 4637.17, 'text': 'And then inside here we can assign self.name equal to name.', 'start': 4631.644, 'duration': 5.526}, {'end': 4641.915, 'text': "Now in a lot of languages when you use a class you'll use this.", 'start': 4637.23, 'duration': 4.685}, {'end': 4647.24, 'text': "So in a standard Python class you're going to use this self.", 'start': 4642.876, 'duration': 4.364}, {'end': 4653.287, 'text': "So just think of that as this if you're coming from ES6 or PHP or something.", 'start': 4647.861, 'duration': 5.426}, {'end': 4661.617, 'text': "So to create an object, let's say we'll initialize user object.", 'start': 4654.953, 'duration': 6.664}], 'summary': 'Introduction to using custom modules and creating classes in python, with an emphasis on object-oriented programming and class instantiation.', 'duration': 124.848, 'max_score': 4536.769, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs4536769.jpg'}, {'end': 4612.93, 'src': 'embed', 'start': 4565.959, 'weight': 1, 'content': [{'end': 4569.803, 'text': 'okay, an object has properties and methods.', 'start': 4565.959, 'duration': 3.844}, {'end': 4573.366, 'text': 'methods are basically just functions that are associated with it.', 'start': 4569.803, 'duration': 3.563}, {'end': 4579.731, 'text': 'almost everything in python is an object and you can see when we have a string we can call, we can call methods on it.', 'start': 4573.366, 'duration': 6.365}, {'end': 4584.835, 'text': 'a string is an object and almost everything is an object.', 'start': 4579.731, 'duration': 5.104}, {'end': 4589.418, 'text': "so let's go ahead and create a class.", 'start': 4584.835, 'duration': 4.583}, {'end': 4593.121, 'text': "I'm gonna try to do this quick, because we're really running out of time here.", 'start': 4589.418, 'duration': 3.703}, {'end': 4603.088, 'text': "so let's let's create a class called user and if you've created classes in PHP or Java C sharp and it's, it's pretty similar.", 'start': 4593.121, 'duration': 9.967}, {'end': 4612.93, 'text': 'so we can have a constructor, and So a constructor is basically a function that runs when you instantiate an object from a class.', 'start': 4603.088, 'duration': 9.842}], 'summary': 'Python objects have properties, methods, and constructors, and almost everything is an object.', 'duration': 46.971, 'max_score': 4565.959, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs4565959.jpg'}], 'start': 4362.75, 'title': 'Python module example and classes and objects', 'summary': "Demonstrates creating and using a custom module 'validator.py' to validate an email in python, and covers basics of creating and instantiating classes with methods, inheritance, and method overriding.", 'chapters': [{'end': 4540.15, 'start': 4362.75, 'title': 'Python module example: installing and using a custom module', 'summary': "Demonstrates how to create and use a custom module named 'validator.py' to validate an email using a regular expression method, enabling the validation of email addresses within a python program.", 'duration': 177.4, 'highlights': ["The chapter demonstrates how to create and use a custom module named 'validator.py' to validate an email using a regular expression method. It shows the process of creating and using a custom module called 'validator.py' to validate an email address using a regular expression method.", "The module includes a function called 'validate email' which checks the length of the given email and uses the regular expression module to validate it. The 'validator.py' module contains a 'validate email' function that checks the length of the input email and utilizes the regular expression module to validate the email address.", "The 'validate email' function returns a boolean value (true or false) based on whether the input is a valid email address. The 'validate email' function returns a boolean value, true or false, based on the validity of the input email address."]}, {'end': 5159.897, 'start': 4540.65, 'title': 'Python classes and objects', 'summary': 'Covers the basics of creating and instantiating classes with methods in python, including inheritance and method overriding, with examples and explanations.', 'duration': 619.247, 'highlights': ['A class is used to create objects with properties and methods, which are basically just functions associated with it. The chapter emphasizes that an object in Python has properties and methods, where methods are functions associated with the object.', 'Creating a class involves defining a constructor function that runs when an object is instantiated from the class. The chapter explains the process of defining a constructor function, indicated by double underscore init, to initialize an object from the class.', "Creating methods within a class involves using the 'def' keyword and taking in the 'self' parameter to access properties from any method within the class. The chapter details the process of creating methods within a class, using the 'def' keyword and the 'self' parameter to access properties within the class."]}], 'duration': 797.147, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs4362750.jpg', 'highlights': ["The chapter demonstrates how to create and use a custom module named 'validator.py' to validate an email using a regular expression method.", 'A class is used to create objects with properties and methods, which are basically just functions associated with it.', "The module includes a function called 'validate email' which checks the length of the given email and uses the regular expression module to validate it.", 'Creating a class involves defining a constructor function that runs when an object is instantiated from the class.']}, {'end': 5745.495, 'segs': [{'end': 5290.815, 'src': 'embed', 'start': 5254.591, 'weight': 2, 'content': [{'end': 5255.492, 'text': "Yeah, we'll just do this.", 'start': 5254.591, 'duration': 0.901}, {'end': 5259.195, 'text': 'So print name, my file dot name.', 'start': 5255.592, 'duration': 3.603}, {'end': 5265.079, 'text': 'Okay, so my file is basically an object that has properties on it that we can access.', 'start': 5259.215, 'duration': 5.864}, {'end': 5269.743, 'text': "So we can do name, we can see if it's closed or not.", 'start': 5266, 'duration': 3.743}, {'end': 5272.385, 'text': "So let's say is closed.", 'start': 5269.803, 'duration': 2.582}, {'end': 5276.428, 'text': 'And this has a property called closed.', 'start': 5273.766, 'duration': 2.662}, {'end': 5280.852, 'text': 'And we also have a property called mode.', 'start': 5279.05, 'duration': 1.802}, {'end': 5287.712, 'text': 'Change that to opening mode.', 'start': 5284.71, 'duration': 3.002}, {'end': 5289.914, 'text': 'All right.', 'start': 5287.732, 'duration': 2.182}, {'end': 5290.815, 'text': "So let's run this.", 'start': 5289.994, 'duration': 0.821}], 'summary': 'Demonstrating file object properties: name, closed, and mode.', 'duration': 36.224, 'max_score': 5254.591, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs5254591.jpg'}, {'end': 5394.399, 'src': 'embed', 'start': 5331.434, 'weight': 0, 'content': [{'end': 5332.935, 'text': 'Right Because we can keep writing to it.', 'start': 5331.434, 'duration': 1.501}, {'end': 5334.915, 'text': 'We can append to it.', 'start': 5333.955, 'duration': 0.96}, {'end': 5339.957, 'text': "Let's say and JavaScript.", 'start': 5335.716, 'duration': 4.241}, {'end': 5341.997, 'text': 'OK And then we want to close it.', 'start': 5340.537, 'duration': 1.46}, {'end': 5345.298, 'text': "So we're going to say my file dot close.", 'start': 5342.017, 'duration': 3.281}, {'end': 5351.46, 'text': 'So if we ran this is closed on down here, it would be true.', 'start': 5348.079, 'duration': 3.381}, {'end': 5358.209, 'text': "So let's save that and run it and let's go to the text file.", 'start': 5352.665, 'duration': 5.544}, {'end': 5358.73, 'text': 'And there we go.', 'start': 5358.23, 'duration': 0.5}, {'end': 5360.732, 'text': 'I love Python and JavaScript.', 'start': 5358.75, 'duration': 1.982}, {'end': 5364.294, 'text': "OK, so let's say we want to.", 'start': 5362.173, 'duration': 2.121}, {'end': 5365.856, 'text': 'This has already been closed.', 'start': 5364.815, 'duration': 1.041}, {'end': 5367.797, 'text': "Let's say we still want to append to it.", 'start': 5365.896, 'duration': 1.901}, {'end': 5369.118, 'text': 'We still want to add to it.', 'start': 5367.837, 'duration': 1.281}, {'end': 5375.744, 'text': 'So what we can do is we can then open it again.', 'start': 5372.861, 'duration': 2.883}, {'end': 5377.325, 'text': 'So just like we did up here.', 'start': 5376.044, 'duration': 1.281}, {'end': 5385.656, 'text': "We're going to say equals open my file text only this time we're going to use a we want to append to it.", 'start': 5379.994, 'duration': 5.662}, {'end': 5387.737, 'text': "Otherwise, it's we're going to overwrite it.", 'start': 5385.976, 'duration': 1.761}, {'end': 5388.697, 'text': "We don't want to do that.", 'start': 5387.817, 'duration': 0.88}, {'end': 5393.539, 'text': 'So go ahead and paste this in.', 'start': 5389.397, 'duration': 4.142}, {'end': 5394.399, 'text': "Let's put.", 'start': 5393.679, 'duration': 0.72}], 'summary': 'Demonstrates file manipulation in python and appending to a text file.', 'duration': 62.965, 'max_score': 5331.434, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs5331434.jpg'}, {'end': 5492.353, 'src': 'embed', 'start': 5437.667, 'weight': 3, 'content': [{'end': 5443.749, 'text': "Okay, so we'll go ahead and run that, and there we go.", 'start': 5437.667, 'duration': 6.082}, {'end': 5446.951, 'text': 'I love Python and JavaScript, I also like PHP.', 'start': 5444.47, 'duration': 2.481}, {'end': 5451.568, 'text': "So that's starting to work with files.", 'start': 5448.605, 'duration': 2.963}, {'end': 5453.11, 'text': "Obviously, there's a lot more you can do.", 'start': 5451.628, 'duration': 1.482}, {'end': 5457.098, 'text': "But we're going to move on now to working with JSON.", 'start': 5454.336, 'duration': 2.762}, {'end': 5461.141, 'text': 'Okay, so JSON is commonly used with data APIs.', 'start': 5457.118, 'duration': 4.023}, {'end': 5464.884, 'text': "Here's how we can parse JSON into a Python dictionary.", 'start': 5461.622, 'duration': 3.262}, {'end': 5471.589, 'text': "So a lot of times you might be dealing with third-party APIs where you're dealing with data that comes in as JSON.", 'start': 5465.324, 'duration': 6.265}, {'end': 5479.195, 'text': "And you're going to want to be able to parse JSON into a Python dictionary so you can work with it.", 'start': 5472.75, 'duration': 6.445}, {'end': 5483.705, 'text': "You'll also probably want to parse a dictionary as JSON.", 'start': 5480.242, 'duration': 3.463}, {'end': 5488.79, 'text': 'So there is a module called JSON that we can use.', 'start': 5484.506, 'duration': 4.284}, {'end': 5492.353, 'text': 'So we want to import JSON.', 'start': 5489.15, 'duration': 3.203}], 'summary': 'Introduction to working with json and python, including parsing data and using the json module.', 'duration': 54.686, 'max_score': 5437.667, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs5437667.jpg'}], 'start': 5161.087, 'title': 'Python file handling and json in python', 'summary': 'Covers creating, opening, writing, and appending to files in python, along with working with json, including reading from a file, parsing json into a python dictionary, and turning a dictionary into json format. practical examples and advice for further learning are provided.', 'chapters': [{'end': 5394.399, 'start': 5161.087, 'title': 'Python file handling basics', 'summary': 'Covers creating, opening, writing, and appending to files in python, demonstrating how to create a text file, write to it, and access its properties, including modes and closure status, ultimately showcasing the content of the file.', 'duration': 233.312, 'highlights': ["The chapter demonstrates creating a text file 'my_file.txt' using the 'open' function in Python, and writing the strings 'I love Python' and 'JavaScript' to it.", 'It explains how to access and display properties of the file object, such as its name, closure status, and opening mode, providing insights into its current state.', 'The chapter also highlights reopening the file in append mode to add additional content to it, ensuring that the file is not overwritten and the previous content is retained.']}, {'end': 5745.495, 'start': 5394.419, 'title': 'Working with python and json', 'summary': 'Covers working with python, including reading from a file, parsing json into a python dictionary, and turning a dictionary into json format, providing practical examples and advice for further learning.', 'duration': 351.076, 'highlights': ["I love Python and JavaScript, I also like PHP. So that's starting to work with files. (Relevance: 5)", "JSON is commonly used with data APIs. Here's how we can parse JSON into a Python dictionary. (Relevance: 4)", "Let's say user JSON equals. And it's going to be a string of Jason, which has double double quotes around the key and value. So let's say first name. John Last name. Doe And age, that's a number, so we can do 30. All right. (Relevance: 3)", "Alright, guys, so that's going to be it for this crash course. I hope you enjoyed it. (Relevance: 2)"]}], 'duration': 584.408, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/JJmcL1N2KQs/pics/JJmcL1N2KQs5161087.jpg', 'highlights': ["The chapter demonstrates creating a text file 'my_file.txt' using the 'open' function in Python, and writing the strings 'I love Python' and 'JavaScript' to it.", 'The chapter also highlights reopening the file in append mode to add additional content to it, ensuring that the file is not overwritten and the previous content is retained.', 'It explains how to access and display properties of the file object, such as its name, closure status, and opening mode, providing insights into its current state.', "JSON is commonly used with data APIs. Here's how we can parse JSON into a Python dictionary.", "I love Python and JavaScript, I also like PHP. So that's starting to work with files."]}], 'highlights': ['The chapter emphasizes the shift from Eclipse IDE to VS Code for the crash course, providing a more efficient and preferred platform for Python development.', 'The importance of having Python 3 installed is stressed, with guidance on obtaining it from python.org and checking the version using the terminal.', "The Python Sandbox from the speaker's Django course on Udemy is utilized, providing a link for interested individuals to access it in the description.", 'The chapter covers the basics of defining variables, rules, and common data types in Python.', 'The chapter introduces Python string formatting techniques such as positional arguments and f-strings, providing examples and comparisons.', 'Covers python lists and methods, including creation and manipulation of lists with various methods like adding, removing, inserting, reversing, sorting, and changing values.', 'The chapter explains the basics of Python dictionaries, including creating dictionaries, using constructors, accessing values, adding key-value pairs, and retrieving keys and items.', 'The chapter covers if statements, if-else statements, and elif statements, explaining the usage of comparison operators like equals to, not equals, greater than, less than, greater than or equals, and less than or equals, with an example of X greater than Y and Y greater than X, showcasing the outcomes.', "The chapter demonstrates how to create and use a custom module named 'validator.py' to validate an email using a regular expression method.", "The chapter demonstrates creating a text file 'my_file.txt' using the 'open' function in Python, and writing the strings 'I love Python' and 'JavaScript' to it."]}