Home
Search results “Python coding style guide”
Python tricks: Writing user-friendly code with PEP-8 naming conventions
 
15:30
In this video, I describe the PEP-8 style guideline for Python, with a specific focus on the naming conventions for variables, functions, and classes, which can make your code much easier to use for others. The Jupyter notebook is available here: https://osf.io/xy8kh/
Views: 6595 Sebastiaan Mathôt
pep8.org — The Prettiest Way to View the PEP 8 Python Style Guide
 
07:36
Improve your Python skills, one bite at a time: https://dbader.org/python-tricks PEP 8 is the most popular code style guide for Python. It's widely known and used by the Python community. If you're looking for formatting advice on your Python code, look no further. It's a good time investment to spend a few hours reading through PEP 8 and learning how to apply its recommendation to your own projects. A common challenge with applying PEP 8 is that the original web page on python.org for it is kind of difficult to read—for example there's no code highlighting or a persistent table of contents you can use to navigate around. pep8.org is a project that aims to change this. It's a "nicely formatted" version of the original PEP 8 document with the goal to make this wonderful Python style guide more accessible and easier to share. pep8.org is an open-source project that was started by Kenneth Reitz, the creator of Requests and many other popular Python packages. I was happy to bump into Kenneth at PyCon 2017 (because he's one of my personal "Python heroes") and in the course of that I became a co-maintainer for pep8.org and brought it up to date and made some small fixes to the website over the last couple of days. In this video you'll see how pep8.org can help you write cleaner and more beautiful Python code that follows the PEP 8 community style guide. Here's how to find it: → https://pep8.org → https://github.com/kennethreitz/pep8.org * * * ► Subscribe to this channel: https://dbader.org/youtube/ ► Free Python Articles & Tutorials: https://dbader.org/newsletter
Views: 15923 Real Python
PEP8 Python Style Guide
 
10:30
Hi, it's Naz from subtlecoding.com. In this video, I've gone over some of the recommended methods of Python programming using the PEP8 (Pythong Enhancement Proposal) Style Guide. Topics covered in this video: 1. Naming convention for functions and variables. 2. Naming convention for classes. 3. Importing libraries in correct order 4. Using spaces and tabs before function definitions 5. Seperating keys in a particular order in long dictionaries 6. Uses of single space after every comma to make code readable. 7. Installing and Using flake8 to trace any styling error. How to install flake8? If you've not already installed pip (a python package manager) yet, click the following link: https://www.dropbox.com/s/u0zmopvjnyjrfrn/get-pip.py?dl=0 and download the file, and run the following command in a console: python3 get-pip.py Then run the following command python3 -m pip install flake8 Happy Coding. Useful Resources: 1. PEP8 Official Documentation: https://www.python.org/dev/peps/pep-0008/ 2. Installing pip: https://www.dropbox.com/s/u0zmopvjnyjrfrn/get-pip.py?dl=0 Visit Website: http://www.subtlecoding.com.
Views: 5349 Naz-Al Islam
Pylint Tutorial – How to Write Clean Python
 
17:49
https://dbader.org/python-tricks ► Get examples of clean and Pythonic code that passes any Pylint or PEP 8 run. In this Pylint tutorial video you'll see how to install and set up the Pylint code linter for Python step by step. We'll go over why you should use a code linter like Pylint, Flake8, Pyflakes, or other static analysis tools—and how they can help you write cleaner and more Pythonic code. Pylint is a well-known static analysis tool for Python 2 and 3. It has a number of useful features, like checking your code for compliance with the PEP 8 Python style guide. It makes sure that your code follows the code style guide and it can also automatically identify common bugs and errors in your Python code. To set up Pylint you'll first need to install it with the `pip install` command and then you can run it on any Python file with the "pylint" command. Pylint inspects your code and then gives you feedback on it. Besides running Pylint from the command-line you can also integrate it into your editor to get live feedback on your Python code. In this Pylint tutorial I'm going over the feedback produced by Pylint and I'm taking it to refactor and improve the quality of my code. You can get this setup up and running in a few minutes and it'll quickly help you write better and cleaner Python code. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python swag: MUGS, SHIRTS & more: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 29402 Real Python
Python Code Review: Refactoring a Web Scraper, PEP 8 Style Guide Compliance, requirements.txt
 
37:36
https://dbader.org/python-mastery ► How to become an effective & productive Python developer Python Code Review: Unplugged – Episode 2: Code Review for Milton This is a Python code review I did for Milton's Python project on GitHub. Milton is definitely on the right track with his Python journey. I liked how he used functions to split up his web scraper program into functions that each handle a different phase, like *fetch the html*, *parse it*, and *generate the output file*. The main thing that this code base could benefit from would be consistent formatting. Making the formatting as regular and consistent as possible really helps with keeping the "mental overhead" low when you're working on the code or handing it off to someone else. Besides formatting, the video also covers things like writing a great GitHub README, how to name functions and modules, and the use of constants to simplify your Python code. Again, I left the video completely unedited. That’s why I’m calling this series Code Review: Unplugged. It’s definitely not a polished tutorial or course. But based on the feedback I got so far that seems to be part of the appeal :D The article I mention in the video: "How to write a great GitHub README" » https://dbader.org/blog/write-a-great-readme-for-your-github-project Here's some more background info about this video: https://dbader.org/blog/python-code-review-unplugged-episode-2 FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 3310 Real Python
Transforming Code into Beautiful, Idiomatic Python
 
48:51
Raymond Hettinger Learn to take better advantage of Python's best features and improve existing code through a series of code transformations, "When you see this, do that instead."
Views: 490205 Next Day Video
Python: 4.0 - Good Coding Practices
 
12:18
Content and video by Naveena Benjamin - This video is created by someone like you, want to help improve it further? in English or any other language in world. Gain access by joining Stanford Crowd Course Initiative! https://goo.gl/BOUA02
Views: 2858 Stanford Scholar
1.5 Python coding style PEP8
 
08:32
Python coding style • PEP 8 has emerged as the style guide that most projects adhere to; it promotes a very readable and eye-pleasing coding style. • Every Python developer should read it at some point. • PEP stands for Python Enhancement Proposals. https://www.python.org/dev/peps/pep-0008 PEP 8 • Most languages can be written in different styles; some are more readable than others. Making it easy for others to read your code is always a good idea. Adopt nice simple coding style to help others. • Python has simple style and the most important points are discussed in this session. https://docs.python.org/3.7/tutorial/controlflow.html#intermezzo-coding-style Code Lay-out • Indentation • Wrap lines • Blank Lines • Comments • Docstrings • Tabs or Spaces? • Tabs or Spaces? • Line Break • Source File Encoding • Imports • Module Level Dunder Names Indentation • Use 4-space indentation, and no tabs. Tab in some editors (ex. Notepad++) have 4 space tab. • 4 spaces are a good compromise between small indentation (allows greater nesting depth) and large indentation (easier to read). Wrap lines (Max line length) • Wrap lines so that they don’t exceed 79 characters. • This helps users with small displays and makes it possible to have several code files side-by-side on larger displays. • Python is free language. You can break line any where. Blank lines for readability • Use blank lines to separate functions and classes, and larger blocks of code inside functions. Comments • Add comments for clear understanding to benefit fellow programmers to quickly catchup. Python has two ways to annotate Python code. • Single-line comments begin with the hash character ("#") and are terminated by the end of line. • Multi line comments are achieved by inserting a multi-line string with """ as the delimiter on each end. Use docstrings • Docstrings (documentation strings): strings that are located alone without assignment as the first indented line within a module, class, method or function, automatically set their contents as an attribute named __doc__. docstrings Spaces • Use spaces around operators and after commas, but not directly inside bracketing constructs: a = f(1, 2) + g(3, 4). Naming classes and functions Name your classes and functions consistently; • Classes naming convention: camelCase • functions and methods: lower_case_with_underscores • camelCase is named after the camel humps, is the practice of writing phrases with middle of the phrase begins with a capital letter. Common examples include "iPhone" and "eBay". Encode in UTF-8 Don’t use fancy encodings if your code is meant to be used in collaborated/ international environments. Python’s default, UTF-8, or even plain ASCII work best in any case. Don’t use non-ASCII • Don’t use non-ASCII characters in identifiers when people speaking different languages are required to read or maintain the code. Naming Conventions – descriptive Prescriptive: Naming Conventions – Names to Avoid – ASCII Compatibility – Package and Module Names – Class Names – Type Variable Names – Exception Names – Global Variable Names – Function and Variable Names – Function and Method Arguments – Method Names and Instance Variables – Constants – Designing for Inheritance – And more… Function Annotations Annotations are stored in the __annotations__ attribute of the function as a dictionary and have no effect on any other part of the function. Function annotations are defined in PEP 3107. https://www.python.org/dev/peps/pep-3107/ Module Level Dunder Names • Module level "dunders" (i.e. names with two leading and two trailing underscores) such as __all__, __author__, __version__, etc. should be placed after the module docstring but before any import statements except from __future__ imports. • Python mandates that future-imports must appear in the module before any other code except docstrings:
Views: 68 CBTUniversity
Programming Paradigms - Computerphile
 
10:44
There are different styles of programming, some quite closely resemble pure mathematics. Mathematician and Computer Scientist Laurence Day compares two of them. Note: In the Java code the delimiters within the 'for' loop should be semi-colons, not commas. Apologies for the error. What if the Universe is a Computer Simulation: http://youtu.be/YOxDb_BbXzU Sights and Sounds of Sorting with BASIC: http://youtu.be/Ou2A-JWszVA http://www.facebook.com/computerphile https://twitter.com/computer_phile This video was filmed and edited by Sean Riley. Computer Science at the University of Nottingham: http://bit.ly/nottscomputer Computerphile is a sister project to Brady Haran's Numberphile. See the full list of Brady's video projects at: http://bit.ly/bradychannels
Views: 408284 Computerphile
Best Practices With Documenting and Refactoring Python Code
 
12:00
n this talk, we'll review best practices with documenting and refactoring code in Python, including using pydocstrings, self-documenting code, and other helpful comments. EVENT: OKC Python 2018 SPEAKER: Aaron Krauss PERMISSIONS: Techlahoma Event Organizer provided Coding Tech with the permission to republish this video. CREDITS: Techlahoma YouTube channel: https://www.youtube.com/channel/UCnLf0pfqIpSfKuPZ0e9iiNQ Techlahoma web-page: https://www.techlahoma.org
Views: 5930 Coding Tech
Python GUI Frameworks (Guide)
 
04:50
https://dbader.org/python-tricks ► Learn how to write "developer style" Python, step-by-step What's the landscape for Python GUI frameworks and how can you use them to write graphical user interfaces using Python 2 or 3? In this video I'm covering a number of popular frameworks you can use to build Python GUIs: - TkInter (built into the Python standard library) - PyQt (Qt bindings for Python, available on PyPI) - Kivy (desktop + mobile GUI framework, available on PyPI) - BeeWare Project / PyBee (native desktop + mobile GUI framework, available on PyPI) - PyGame (Python game development framework) What's your favorite way of building GUI applications with Python? Leave a comment below and share your thoughts with us :) Tweet your Python and software dev career questions at me (@dbader_org) or leave a comment on this video and I'll try to cover your question in one of the next videos. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com ► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com FREE Python Coding Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 45671 Real Python
Learn Python Programming Tutorial 35 | Python Naming Conventions
 
04:32
This python tutorial will overview naming conventions used within Python. Python naming conventions are helpful to reduce the effort needed to read and understand source code and also to help avoid "naming collisions". For more tutorials check out http://www.mybringback.com . Visit Our Friends @ Stone River E-Learning for Additional Tutorials - http://bit.ly/1fjsXTn Coupon 20% Off HTML & CSS for Beginners - http://bit.ly/1MmuYfw
Views: 4124 mybringback
Code Style: Readable, Logical, & Elegant Conventions (WebStorm) (Part 1/3)
 
10:08
An open discussion about the 'why' of coding style. I walk through the JavaScript code style settings for WebStorm.
Views: 1330 Code Evolution
C++ Style Guide - Naming & Variables
 
02:34
This c++ style guide series will make you familiar with proper styling of code. As per google style guide. This particular video is about naming and variables.
Views: 1765 Pro Coding
Naming Python Variables
 
07:58
Discusses the conventions for naming Python Variables
Views: 6844 John Philip Jones
How to write actually object-oriented python - Per Fagrell
 
24:23
The multi-paradigm flexibility of Python can bite developers new to Python or object-orientation, since self-restraint and design know-how is needed to keep code style paradigm-consistent. Learn about OO principles like SOLID and Tell-Don't-Ask and how they apply in Python for more uniform, testable, and working OO code.
Views: 76388 PyGotham 2014
What's the meaning of underscores (_ & __) in Python variable names?
 
06:01
https://dbader.org/python-tricks ► Make those underscores count and write clean and beautiful Python, by example Leading underscores in Python variable names (for example _foo and __foo) protect developers from naming conflicts. In this video you'll learn how to work with these Pythonic coding conventions and why they exist. A single underscore in front of a variable name (prefix) is a hint that a variable is meant for internal use only. A double underscore prefix causes the Python interpreter to rewrite the variable name in order to avoid naming conflicts in subclasses. Double underscores are also called "dunders" in Python. Watch the video tutorial to see the details of how double underscore name mangling works and how it affects your own Python classes. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python MUGS, T-SHIRTS & MORE: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 112269 Real Python
10 Tips For Clean Code
 
11:10
What is the clean code? In this talk the speaker will provide some answers to this question, and introduce you to 10 good habits that will help keep your code clean. EVENT: Wordcamp US, 2016 SPEAKER: Michael Toppa CREDITS: This is a repost of the original video published on WordPress YouTube channel (https://www.youtube.com/channel/UCpJf6LGZ0a4n9Lj4aVt9spg), which was uploaded with the Creative Commons Attribution license (reuse allowed). ORIGINAL SOURCE: https://www.youtube.com/watch?v=ls4iAtOCH8g
Views: 315794 Coding Tech
My Python Code Looks Ugly and Confusing – Help!
 
05:49
LEARN MORE: https://dbader.org/blog/python-code-linting Automated code analysis tools can help you become a better Python developer quickly. In this video I'll explain what a code linter (like Pyflakes, Flake8, or Pycodestyle / Pep8) can do for you. Next I'll show you a few simple steps you can use immediately to run a code linter on your own Python programs. I'll also show you how to integrate linter feedback with your code editor (I'm using Sublime Text 3 in the video). This gives you immediate feedback on your Python code as you type it. I've seen great results from this technique. I believe it's one of the quickest ways to improve your Python skills. Give it a try and let me know how it went :) * In-depth guide for setting up Sublime Text (with integrated code linting and auto-completion for Python): https://SublimeTextPython.com * Flake8: https://pypi.python.org/pypi/flake8 * Pyflakes: https://pypi.python.org/pypi/pyflakes * Pycodestyle (former pep8): https://pypi.python.org/pypi/pycodestyle * Pylint: https://pypi.python.org/pypi/pylint * * * Shameless plug: If you want to get a Sublime Text setup just like the one in the video then check out my Sublime Text Setup Guide for Python Developers: https://SublimeTextPython.com 😊 ► Weekly Tips for Python Developers: https://dbader.org/newsletter
Views: 10753 Real Python
Mastering Python Tutorial: PEP 8 and Writing Readable Code | packtpub.com
 
06:31
Part of 'Mastering Python' video series. For the full Course visit: https://www.packtpub.com/big-data-and-business-intelligence/mastering-python-video?utm_source=youtube&utm_medium=video-description&utm_campaign=yt-masteringpython Make your code more readable for yourself and others using Python's communal coding standard. • Spaces versus tabs • Understanding the code layout • Using naming conventions to perfection _______________________________________________________ For the latest in Big Data and Business Intelligence video tutorials, please visit: http://www.packtpub.com/books/video?utm_source=youtube&utm_medium=video-description&utm_campaign=yt-masteringpython Find us on Facebook -- http://www.facebook.com/Packtvideo Follow us on Twitter - http://www.twitter.com/packtvideo
Views: 3791 Packt Video
(Learn Programming With Python) 76-Tip 7-PEP8-Python Style Guide
 
04:03
Learn Programming With Python In 100 Steps Section: 9 Python Tips For Beginners 76. Tip 7 - PEP8 - Python Style Guide For Books Visit https://programmingisalife.blogspot.com
How to write more readable code in Python - What is PEP 8 style guide for Python code
 
02:41
Hi everyone. In this video we're going to talk about guides how to write more readable and maintainable Python code. And we'll talk about that what PEP 8 is and where to get documentations for writing better code in Python.
Views: 225 nevsky.programming
5 Tutorial Python - Coding Style
 
13:53
di tutorial ke lima ini, saya ngejelasin tentang gimana cara nulis script python, terutama tentang indentasi dan titik koma yang nggak ada di python. intinya di python, nggak ada titik koma (semicolon). setiap baris dipisahin sama newline atau enter. jadi nggak perlu lagi tulis titik koma di tiap akhir line indentasi sendiri fungsinya mengganti kurung kurawal di bahasa pemrograman yang lain (C, C++, Java). command yang ada di dalam kurung kurawal di bahasa lain, di python ditulis satu indentasi ke kanan. ini beberapa link untuk ngeliat lebih jelas tentang topik ini http://www.python-course.eu/python3_blocks.php https://www.python.org/dev/peps/pep-0008/
Views: 1164 Ahmad Syarif
Programming with Python - 8 - PEP Guidelines | While Loops
 
24:16
PEP Guidelines While Loops
Views: 93 #RandomStuff
[PyConTW 2013] Python Coding Style Guide - 哥寫的 Python 是 Google Style by 李卓軒
 
30:07
畢業於實踐大學資管系,目前是網路創業家,在學時與室友創立實踐大學晨曦之星BBS bbs.kh.usc.edu.tw。 之前曾經任職過的公司有台達電子雲端技術中心,D-Link,中華電信,Yam,Yahoo!以及飛行網(Kuro P2P download)。 在2006年創立youfate.com,並靠Google Adsense取得遊學紐西蘭的資金。 在2013年的過年假期,創立petneed.me。 目前主要專業領域是Web development、Mobile application、Database、Cloud Computing以及Continuous Integration。 Github: https://github.com/jsleetw Blog: blog jslee.name Linkedin: www.linkedin.com/in/jsleetw Python Coding Style Guild Google doc slide: http://goo.gl/s9eLt
Views: 1025 PyCon Taiwan
Naming Convention
 
07:49
Naming Convention - Must factor for programming www.sukesh-Marla.com For training related to design patterns, jQuery and other .net related topics contact at [email protected]
Views: 5652 Sukesh Marla
Naming Convention With Programming Languages
 
10:23
Proper naming conventions, in programming.
Nina Zakharenko - Code Review Skills for Pythonistas
 
40:20
Code Review Skills for Pythonistas [EuroPython 2018 - Talk - 2018-07-26 - Lammermuir] [Edinburgh, UK] By Nina Zakharenko As teams and projects grow, code review becomes increasingly important to support the maintainability of complex codebases. In this talk, I'll cover guidelines for writing consistent python code beyond pep8, how to look out for common python gotchas, and what python tools are available to automate various parts of the review process. Most importantly, I'll cover the human aspect of code reviews - how we can be better at approaching reviews with empathy and understanding from the perspective of both a reviewer and a submitter. Following these successful code review practices will lead to happier teams and healthier code bases. This talk is useful for python developers with any amount of experience. No prerequisite knowledge is necessary. - For those who are just starting out, it will be a great general overview. - Intermediate developers may not know about the wide variety of tooling that's available. - Advanced developers will learn techniques for performing code reviews with empathy. This talk will enable you to have better code reviews on your teams at work, and a better approach to code reviews in open source projects. You'll leave with 3 main takeaways: 1. Code Reviews are most effective when conducted with empathy. If you do reviews with growth and learning in mind, they become tools for sharing knowledge instead of an opportunity to bruise egos or show off esoteric knowledge. 2. Python has powerful tooling available for code reviews such as pep8 as a style guide, pylint as a linter, coverage.py to identify test coverage, and vulture to identify dead code. 3. That python style guides beyond pep8 have clear benefits in terms of producing more consistent code that's easier to review and easier to maintain. License: This video is licensed under the CC BY-NC-SA 3.0 license: https://creativecommons.org/licenses/by-nc-sa/3.0/ Please see our speaker release agreement for details: https://ep2018.europython.eu/en/speaker-release-agreement/
[PY101] 4.1 - Phong Cách Viết Mã (Code Style Guide) trong Python
 
17:41
Nội dung của video nói về phong cách trình bày source code trong Python theo chuẩn PEP8; cách cài đặt và cấu hình pep8 trong VSCode. Link tham khảo: https://www.python.org/dev/peps/pep-0008/ Học lập trình trực tuyến tại http://vnegg.com
Views: 391 VNEGG
Variable Naming Conventions
 
04:21
Programming & Data Structures: Variable Naming Conventions Topics discussed: 1. Naming conventions of C variables Contribute: http://www.nesoacademy.org/donate Website ► http://www.nesoacademy.org/ Forum ► http://forum.nesoacademy.org/ Facebook ► https://goo.gl/Nt0PmB Twitter ► https://twitter.com/nesoacademy Pinterest ► http://www.pinterest.com/nesoacademy/ Music: Axol x Alex Skrindo - You [NCS Release] #CProgrammingByNeso
Views: 13861 Neso Academy
Better Python Coding: list comprehensions instead of looping
 
08:30
I'm a long-time developer, and this is my opinionated take on the subject. I show the benefits of learning this coding style: * Less code means fewer opportunities for bugs. * More "expressive" and "declarative" code means it's easier to understand and maintain. * Fewer junk variables cluttering up the "scope" means the code is more predictable and also contributes to fewer bugs. * Plus, it's a fun way to code and pretty cool how it works.
Views: 144 Robb Shecter
Learn Python Episode #15: User-Defined Functions
 
07:04
Get The Learn to Code Course Bundle! https://josephdelgadillo.com/product/learn-to-code-course-bundle/ Enroll in the FREE course! https://uthena.com/courses/python-free?ref=744aff Let's get into user-defined functions. Now, every programming language has functions, however they are going to look different depending on the language. If you have any experience with PHP or JavaScript, functions in Python are going to look similar. So, we are now past the need to use terminal, and from here on out we are going to use our IDE. In addition to functions, we are going to cover a few of the PEP guidelines. PEP is basically a style guide for the Python language, and the first thing we need to do is drop down two lines from the top of the script. To begin defining a function in Python, all you need to do is type the word "def". When naming functions we must be mindful of the PEP guidelines. With Python you will be using snake case, words separated with underscores, when naming your function. def my_function(): Within the parenthesis we can pass parameters into our function, then we end the line with a colon. So, now we have a function but it doesn't perform any actions, yet. def my_function(): print("This is my function!") print("A second string.") my_function() Now our function will print out two strings. Notice that our IDE automatically indents 4 spaces. When you indent in Python you are creating block of code. When we skip a line and remove the indentation, we are telling Python that our function is completed. Lastly, we will call our function. In the next video we will talk about arguments and how use them inside your function. Web - https://josephdelgadillo.com Subscribe - https://bit.ly/SubscribeJTD Facebook - https://www.facebook.com/delgadillojt Discord - https://discord.gg/EbcQFrg Instagram - https://www.instagram.com/jo3potato
Views: 2231 Joseph Delgadillo
Introduction to C++ Style Guide
 
06:51
C++ Style Guide. Format and structure your code neatly.
Views: 815 Alex Luy
Naming Convention in Programming
 
05:57
naming conventions, naming conventions in java, naming conventions in python, naming conventions ruby, naming conventions chemistry, naming conventions in access, naming convention plex movies, naming conventions for access database, naming convention for database, naming conventions code, naming convention sap, naming convention standards, naming convention in data modeling, naming convention in java, naming convention in java in hindi, naming convention in c#, naming convention in r, naming convention for web api controller, naming convention access, bem naming convention, bim naming convention, bs1192 naming convention, naming convention css, naming convention c#, cpu naming convention, naming convention for plex movies, naming convention for servlet in java, naming convention for firewall, naming convention for excel files, naming convention for saving and storage of files, naming convention for video files, file naming convention, naming convention in access, naming convention in vb, naming convention in java for packages, naming convention in visual basic, naming convention in php, naming convention meaning, naming convention meaning in tamil, msi naming convention, naming convention network devices, naming convention pokemon go, python naming convention, plex naming convention, r naming conventions, sketch naming convention, universal naming convention naming convention naming convention for files naming convention python naming convention definition naming convention in java naming convention template naming convention synonym naming convention c# naming convention examples naming convention for abstract class c# naming convention generator naming convention meaning naming convention azure naming convention android naming convention abstract class naming convention access naming convention angular naming convention active directory naming convention api naming convention abstract class java naming convention aws naming convention adwords a file naming convention a uniform naming convention names of conventional symbols example of a naming convention what is a naming convention in java naming convention best practices naming convention base class naming convention boolean method naming convention boolean naming convention bim naming convention branding naming convention bash script naming convention bmw naming convention boolean variable java naming convention boolean c# naming convention css naming convention camelcase naming convention coding naming convention c# variables naming convention cases naming convention css files naming convention css class naming convention chemistry naming convention constants c# c naming conventions c naming conventions struct c naming conventions _t c naming conventions underscore c naming conventions variables c naming conventions global variables c naming conventions enum c naming conventions files c naming conventions constants c naming conventions typedef naming convention database naming convention document naming convention dcp naming convention document template naming convention design naming convention deutsch naming convention data warehouse naming convention dash naming convention dto naming convention c++ d-cinema naming convention
Views: 455 T3SO Tutorials
Learn Python - Full Course for Beginners
 
04:26:52
This course will give you a full introduction into all of the core concepts in python. Follow along with the videos and you'll be a python programmer in no time! ⭐️ Contents ⭐ ⌨️ (0:00) Introduction ⌨️ (1:45) Installing Python & PyCharm ⌨️ (6:40) Setup & Hello World ⌨️ (10:23) Drawing a Shape ⌨️ (15:06) Variables & Data Types ⌨️ (27:03) Working With Strings ⌨️ (38:18) Working With Numbers ⌨️ (48:26) Getting Input From Users ⌨️ (52:37) Building a Basic Calculator ⌨️ (58:27) Mad Libs Game ⌨️ (1:03:10) Lists ⌨️ (1:10:44) List Functions ⌨️ (1:18:57) Tuples ⌨️ (1:24:15) Functions ⌨️ (1:34:11) Return Statement ⌨️ (1:40:06) If Statements ⌨️ (1:54:07) If Statements & Comparisons ⌨️ (2:00:37) Building a better Calculator ⌨️ (2:07:17) Dictionaries ⌨️ (2:14:13) While Loop ⌨️ (2:20:21) Building a Guessing Game ⌨️ (2:32:44) For Loops ⌨️ (2:41:20) Exponent Function ⌨️ (2:47:13) 2D Lists & Nested Loops ⌨️ (2:52:41) Building a Translator ⌨️ (3:00:18) Comments ⌨️ (3:04:17) Try / Except ⌨️ (3:12:41) Reading Files ⌨️ (3:21:26) Writing to Files ⌨️ (3:28:13) Modules & Pip ⌨️ (3:43:56) Classes & Objects ⌨️ (3:57:37) Building a Multiple Choice Quiz ⌨️ (4:08:28) Object Functions ⌨️ (4:12:37) Inheritance ⌨️ (4:20:43) Python Interpreter Course developed by Mike Dane. Check out his YouTube channel for more great programming courses: https://www.youtube.com/channel/UCvmINlrza7JHB1zkIOuXEbw 🐦Follow Mike on Twitter - https://twitter.com/mike_dane 🔗If you liked this video, Mike accepts donations on his website: https://www.mikedane.com/contribute/ ⭐️Other full courses by Mike Dane on our channel ⭐️ 💻C: https://youtu.be/KJgsSFOSQv0 💻C++: https://youtu.be/vLnPwxZdW4Y 💻SQL: https://youtu.be/HXV3zeQKqGY 💻Ruby: https://youtu.be/t_ispmWmdjY 💻PHP: https://youtu.be/OK_JCtrrv-c 💻C#: https://youtu.be/GhQdlIFylQ8 -- Learn to code for free and get a developer job: https://www.freecodecamp.org Read hundreds of articles on programming: https://medium.freecodecamp.org And subscribe for new videos on technology every day: https://youtube.com/subscription_center?add_user=freecodecamp
Views: 5088583 freeCodeCamp.org
Python 3 Programming Tutorial - Matplotlib Styles
 
10:38
In this Python 3 and Matplotlib tutorial video, we cover Matplotlib styles. Matplotlib styles are a lot like css stylesheets, where you set the rules in the sheet and the customization applies to anything that you use the style script with. You can save specific styles for various charts, naming the style whatever you like, and calling it for specific graphs. Sample code for this basics series: http://pythonprogramming.net/beginner-python-programming-tutorials/ Python 3 Programming tutorial Playlist: http://www.youtube.com/watch?v=oVp1vrfL_w4&feature=share&list=PLQVvvaa0QuDe8XSftW-RAxdo6OmaeL85M http://seaofbtc.com http://sentdex.com http://hkinsley.com https://twitter.com/sentdex Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6
Views: 22673 sentdex
Refactoring Python code with functools partial
 
19:21
I had some code that grew over time and was getting ugly. Instead of just adding to cruft, I decided to refactor it. This video shows how I'm using the functools.partial() to create a function that can just be called, and in the process encapsulate a lot of business logic in its right place (not in your view!). This code is for a new project that I've recently been working on: https://remotematcher.com (It's a tool to help you find your perfect remote job!) Let me know if you have any questions/comments
Views: 914 Nick Loadholtes
Python Data Structures and Style Guide
 
11:46
Lists: http://www.codeskulptor.org/#user13_cKN7PG95uaDL1qi.py Tuples: http://www.codeskulptor.org/#user13_RLy1fXYGKIrqxml.py Functions: http://www.codeskulptor.org/#user13_A5Un7HhkUKFBQra.py PEP: www.python.org/dev/peps/ Slides: http://slid.es/decached/python
Views: 3428 Akash Kothawale
Advanced Python Programming - GUI Automation with PyAutoGUI
 
09:33
Advanced Python Programming Tutorials! Check out my latest video on GUI Automation with PyAutoGUI. We'll learn how to programmatically handle the mouse and keyboard on any device through PyAutoGUI commands and run our own basic script. We'll also learn the hotkey function to run several keyboard commands at once! ► JOIN THECODEX TODAY! https://www.thecodex.me/ ► THE COMPLETE PYTHON PROGRAMMING BOOTCAMP: https://www.thecodex.me/python-bootcamp ► FACEBOOK: https://www.facebook.com/TheCodex1/ ► TWITTER: https://twitter.com/thecodexme ► SUPPORT ME ON PATREON: https://www.patreon.com/The_Codex ♦♦♦♦♦♦♦♦♦♦ THECODEX is a company focused on empowering and enabling anyone to learn how to code. Established in 2015 by Avinash Jain, THECODEX has taught over 150,000 students around the world how to code. With over 13 programming courses on a wide variety of topics, and more than 10,000 5-Star reviews, THECODEX is the right choice for you. We provide engaging and comprehensive videos that break down complex information and cover everything you need to know about the subject. All students get access to our Q/A forums where you can get your doubts and problems cleared up. At the end of every course, you will receive a certificate of completion. Jumpstart your Coding Journey with THECODEX today! ♦♦♦♦♦♦♦♦♦♦ Music: Flash Funk (Marshmello)
Views: 62978 TheCodex
Google Python Class Day 1 Part 1
 
51:37
Google Python Class Day 1 Part 1: Introduction and Strings. Interested in learning python? Then you must watch this video! By Nick Parlante. Support materials and exercises: https://goo.gl/ztTFg Subscribe to the Google Developers channel at http://goo.gl/mQyv5L
Views: 2729525 Google Developers
Python OOP Tutorial 1: Classes and Instances
 
15:24
In this Python Object-Oriented Tutorial, we will begin our series by learning how to create and use classes within Python. Classes allow us to logically group our data and functions in a way that is easy to reuse and also easy to build upon if need be. Let's get started. Python OOP 1 - Classes and Instances - https://youtu.be/ZDa-Z5JzLYM Python OOP 2 - Class Variables - https://youtu.be/BJ-VvGyQxho Python OOP 3 - Classmethods and Staticmethods - https://youtu.be/rq8cL2XMM5M Python OOP 4 - Inheritance - https://youtu.be/RSl87lqOXDE Python OOP 5 - Special (Magic/Dunder) Methods - https://youtu.be/3ohzBxoFHAY Python OOP 6 - Property Decorators - https://youtu.be/jCzT9XFZ5bw The code from this video can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Object-Oriented If you enjoy these videos and would like to support my channel, I would greatly appreciate any assistance through my Patreon account: https://www.patreon.com/coreyms Or a one-time contribution through PayPal: https://goo.gl/649HFY If you would like to see additional ways in which you can support the channel, you can check out my support page: http://coreyms.com/support/ Equipment I use and books I recommend: https://www.amazon.com/shop/coreyschafer You can find me on: My website - http://coreyms.com/ Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Google Plus - https://plus.google.com/+CoreySchafer44/posts Instagram - https://www.instagram.com/coreymschafer/ #Python
Views: 1052780 Corey Schafer
Coding style and PEP8
 
13:48
In this video we talk about coding style, the PEP8 coding standards and some tools built-in in Spyder to help you adhere to them. You can read the full guidelines here: https://pep8.org/ Happy coding!
Views: 62 UoS_Python Course
20140528 Taipei.py - Beyond the Style Guide (Part 3/3)
 
13:22
講者: Mosky 講者介紹: Python Charmer at Pinkoi. The speaker of the PyCons and other tech conferences, a Python instructor, and the author of the Python packages. More information is here: http://mosky.tw . 題目: Beyond the Style Guide In the modern world, programmer’s time is more expensive than computer’s time. Thus the maintainability is important in a codebase. To improve it, we all know some “______ Style Guide”. But is it enough? The answer is “No”. To write maintainable code, you need more than the style guides. In this share, I will introduce you the keys of writing high maintainability code. 1. Your co-worker reads your code. 2. Write the human-only code. 3. Name variables in a meaningful but short way. 4. Blank is important. 5. Draw dependency in your mind. 6. Seal off bad smell. 7. Respect. You will be able to write more maintainable code after this talk. Save both you and your co-workers time to write more excited features. :)
Views: 48 Taipei Python
Google Coding Interview Question and Answer #1: First Recurring Character
 
06:35
Find the first recurring character in the given string! A variation of this problem: find the first NON-recurring character. This variation problem and many others are covered in my Udemy course, 11 Essential Coding Interview Questions: https://www.udemy.com/11-essential-coding-interview-questions/?couponCode=GOOGLE1 (You'll get a discount through the above link.)
Views: 1156690 CS Dojo
Python 08 Programming Style and Comments
 
09:25
Join the Family: https://discord.gg/Kgtnfw4 Support me on Patreon: https://patreon.com/johnhammond010 Learn to code with a TeamTreehouse Discount: treehouse.7eer.net/1WOz6 E-mail: [email protected] PayPal: http://paypal.me/johnhammond010 GitHub: https://github.com/JohnHammond Site: http://www.johnhammond.org Twitter: https://twitter.com/_johnhammond
Views: 1207 John Hammond
C# Best Practices Tutorial | Code Style - Part 1
 
07:27
Want access to all of our C# training videos? Visit our Learning Library, which features all of our training courses and tutorials at http://learn.infiniteskills.com?utm_source=youtube&utm_medium=youtube_video_description&utm_campaign=c#_best_practices_code_style&network=youtube More details on this C# Best Practices training can be seen at http://www.infiniteskills.com/training/learning-c-sharp-best-practices.html?utm_source=youtube&utm_medium=youtube_video_description&utm_campaign=c#_best_practices_code_style&network=youtube This clip is one example from the complete course. For more free C# tutorials please visit our main website. YouTube: https://www.youtube.com/user/OreillyMedia Facebook: https://www.facebook.com/OReilly/?fref=ts Twitter: https://twitter.com/OReillyMedia Website: http://www.oreilly.com/
GNS3 Talks: Python for Network Engineers with GNS3 (Part 8) - Opening Files and spacing importance!
 
11:55
Udemy: Get the course for $10 here: https://goo.gl/QYC988 GNS3 Academy: Get the course for $10 here: https://goo.gl/vnZJhg More free Python videos here: https://www.youtube.com/playlist?list=PLhfrWIlLOoKPn7T9FtvbOWX8GxgsFFNwn Learn Python programming with GNS3. In this series of videos I will show you how you can quickly and easily program Cisco networks using Python. In this video I show you how to open a file and leverage that for configuring Cisco switches. I also demonstrate the importance of spacing in Python. Code is on GitHub here: https://github.com/davidbombal/pythonvideos/commit/d3190711ffe338b7a89e1d6bedc82b5d21789e73 Transcription: This is one of multiple videos teaching you network programmability using Python and GNS3. So let's continue improving or iterating our Python script for network automation. At the moment our script looks as follows. We are configuring multiple switches by using a loop. So we are saying for n in the range 72 to 77 configure switches with IP addresses 192.168.122.72 73 74 75 76 and 77. In other words, these five Cisco switches will be configured in our topology. Now as many times in life there are other ways of doing things and perhaps better ways of doing things. One of the criticisms you may have of a solution like this, is what happens if your switches are not using IP addresses that are sequential. You may have switches and routers mixed in this range of IP addresses or you may only want to configure some Cisco switches and not others. So one of the things we can do is use a full loop and in addition we can read from a file. So I'm going to create a file called myswitches and in here I'm simply going to configure the IP addresses of our switches. So as an example, on switch 1, the IP address is 192.168.122.72 So that's the first switch CTRL K CTRL U a few times. In our topology, it's fairly simple. Our IP addresses are in that range but it doesn't matter can configure any IP addresses. So this is the IP address of the first switch and this is the IP address of the last switch. But this is a simple file and you could configure IP addresses in any range as needed in a file like this. So I'll save that file and then I'll just create a test. So let's call this testloop.py. So what we can do here is open a file and say F equals open and what we’re going to open is a file called myswitches. What I can do is create a full loop now. So full line in F, print line and then I can close the file. So what this is going to do is print every line in the file called myswitches. So I'll save the file. So what I can do now is run the Python script and notice it's showing the output of the file. Now puts a carriage return at the end you can remove that if you need to. But once again we’re opening a file called myswitches and for every line in the file we're simply printing the output of that a line and then once finished we are closing the file. So again I'll run the script and notice that's the output of the script. So the gloss script I worked on was S1script 3 and what I'll do now is copy that to a file called switchloopfile.py Now it's important that you use names that make sense to yourself. But for now that's fine for what we’re doing. So I'll open up that file and what we can do now is edit the script to use similar logic to what I just showed you. So the first thing we're going to do is open a file called myswitches and then we're going to say rather than this, we're going to say for line in f print configuring switch + line. So that's just going to tell us what we currently configuring. The host is are going to be the line rather than this output and then we can keep the script as it was. So I'll just format this better. According to the Python style guide, it's better to use spaces rather than tabs. So we'll do that here to be consistent with the style guide. So that all looks right. So again the change we made is we are now opening up a file called myswitches and we're using a full loop. So for each line in the file F which is a variable that consists of myswitches, we're going to run the following code. So let's test that. So switchloop.py it asked for our username , asked for a password and you can see that we’re told that it's configuring switch with that IP address. Now we're configuring another switch. Notice we do see a lot of white space and if we scroll back we can see the output. So it's configuring the third switch it created VLAN2 configuring the second switch, configuring the third switch, configuring the fourth switch and fifth switch. Now notice it only configured VLAN2....
Views: 13667 David Bombal
Python Django Crash Course
 
01:08:11
In this video I will cram as much as I can about the Python Django framework. We will talk about the framework and its advantages and we will setup up an app from scratch with MySQL. We will discuss the MTV (Model-Template-View) design pattern, setup a virtual environment, look at the core Django files and build the app. DJANGO 2.x UDEMY COURSE COUPON: https://www.udemy.com/python-django-dev-to-deployment/?couponCode=TRAVERSYMEDIA SPONSOR: GDP HOST - WANT CHEAP WEB HOSTING? https://goo.gl/iZjcGk CODE: https://github.com/bradtraversy/djangocrashcourse BECOME A PATRON: Show support & get perks! http://www.patreon.com/traversymedia ONE TIME DONATIONS: http://www.paypal.me/traversymedia VISIT MY WEBISTE: Check Out My Udemy Courses http://www.traversymedia.com FOLLOW TRAVERSY MEDIA: http://www.facebook.com/traversymedia http://www.twitter.com/traversymedia http://www.instagram.com/traversymedia https://discord.gg/traversymedia
Views: 476348 Traversy Media