r/pythontips • • Jun 14 '20

Long_video In this episode we write a full-text search engine using bloom filters in Python! What other Python packages are you aware of that can act as search engines?

28 Upvotes

r/pythontips • • Mar 18 '20

Why Choose Python Development In 2020?

28 Upvotes

Benefits of using Python for businesses:

Python was picked for this task for various deliberately thought about reasons:

Access to Source: We realized that we needed the source code for whatever language we picked. Framing a startup is unsafe enough without stressing over being totally reliant upon another person to fix bugs in your device settings. Python is open-source with an unrestrictive permit.

Capacity to Integrate: We wanted to rehash an already solved problem. We required a language that would play pleasantly with existing projects, for example, social databases, web programming, and whatever other existing applications we may need to coordinate into our applications later on. Python is appropriate for this.

Fast Development: We realized that we would need to do a ton of prototyping before we were happy with our plan, so we needed a deciphered, progressively composed language. For expressive force, we needed a significant level item arranged language. Speed of advancement, not application runtime speed, was generally basic for us. Python is a profitable method to compose code.

Backing for Selective Optimization: We knew quite possibly profiling would later uncover that little bits of our application were time-basic, and in this manner may be re-coded in C or C++. Python coordinates flawlessly with these dialects, so you really can “have it both ways” by coding just little profiler-recognized parts of your code in C or C++, and utilizing the implicit more elevated level deliberations of Python for fast improvement of the remainder of your application.

Get more details here - https://www.cdnsol.com/blog/why-to-choose-python-development-in-2020/


r/pythontips • • Oct 07 '19

How to setup ATOM as your Python development environment

28 Upvotes

r/pythontips • • May 04 '19

My buddy made a video on YouTube on how to install Python Libraries using Microsoft Visual Studio. Let him know how he did!

28 Upvotes

r/pythontips • • Oct 24 '24

Standard_Lib How to learn python

27 Upvotes

I have free time from highschool and want to get into coding, and tips on diving in and learning.


r/pythontips • • Apr 09 '24

Syntax Do not forget Python's Recently New "Match Case" Feature

27 Upvotes

If you've been a Python user for a while, you might not have noticed the recent addition to Python's toolkit: the "Match Case" statement, which essentially functions as the long-awaited "Switch Statement." This enhancement has been a subject of discussion among programmers, particularly those with experience in languages offering this feature.

It has been around for some time, Python 3.10 brought forth this new functionality. The "Match" statement allows you to compare a value against a set of patterns and then execute the corresponding block of code for the first pattern that matches. This new change eliminates the necessity of crafting lengthy code within nested if-else constructs, significantly enhancing the overall readability of your codebase. I recommend everyone to acquaint themselves with this concept, as its prevalence in codebases is bound to increase in the future.

For a comprehensive understanding of its usage, along with additional Python tips, you can refer to my YouTube video. Remember to show your support by liking, commenting, and subscribing. I hope you learn something new!


r/pythontips • • Jan 05 '23

Meta Dnd like game in python?

27 Upvotes

Hi, so I am thinking of creating a game using the python language as my next big project. Basically it would be a choose your own adventure game with dice rolling at some points. Pretty simple, might not even need pygames

Have you made something like that before ? Do you have any tips ?


r/pythontips • • Aug 28 '22

Python3_Specific How to host my python script?

27 Upvotes

I'm a network engineer and relatively new to python. Recently, I built a script that I would like to provide to a larger audience.

The script takes a input of a Mac address from the user, then finds what switch interface it's connected to. The script works well, but I don't know how to host it or provide it to a larger audience (aside from providing every user the github link and having them install netmiko).

Do you have any suggestions on how to host this script.

Again, I'm still very new to python and might need some additional explainers.

Thank you!


r/pythontips • • Jul 18 '22

Data_Science Terminal Installations

27 Upvotes

Are there pip commands to install the libraries for this code: https://learn.adafruit.com/adafruit-ultimate-gps/circuitpython-python-uart-usage ? I’m using a BBB and can’t find anything. I’ve tried installing the bundle and putting it in the same folder on the BBB as the code, but that didn’t run. I believe “time” is inherent with the board, and I’ve installed the adafruit-gps library and the busIO library (I believe). However, I can’t find anything for board. I have a different code as well with a “serial” library that I can’t find any commands for either. I’d appreciate any help. Thanks!


r/pythontips • • Jun 03 '22

Module Remote control using MicroPython and MQTT - Tutorial

27 Upvotes

What if you want to remote control a drone, or create a smart home lighting system, or collect sensor data from many devices?

Enter MQTT: a robust and flexible IoT protocol that does it all

Learn how to do it all in MicroPython!

https://bhave.sh/micropython-mqtt/


r/pythontips • • Mar 25 '22

Module Is it good to always write program in this format? (With if __name__=“” at the end)

27 Upvotes

I am wondered if this is a “must” to write the program in this format? Is it good or just useless?

def main(): Xxxx Xxxx If name == “main” main()

It’s just that i read some book for beginner and it recommends you to write like this. What do you think?


r/pythontips • • Jan 27 '22

Syntax First program with 170 lines of code.

27 Upvotes

This is the first time I wrote a "big" program. I began to learn python on 'n off about 2 weeks ago. What should/could I improve in my "writing".

>Code


r/pythontips • • Jan 03 '22

Syntax Variables in Python - Lecture 2 | Python Course for Beginners

27 Upvotes

Hi,

This is the second tutorial of the python course for beginners, you will learn the concept of variables in python.

https://www.youtube.com/watch?v=T5ceydL7d1k

Hope you find it useful!


r/pythontips • • Nov 21 '21

Python3_Specific Check out this intro guide to Python dictionaries

27 Upvotes

Complete introductory guide with everything about Python dictionary data structure and it's capabilities to help you become a better programmer!

https://pyshark.com/python-dictionary-data-structure/


r/pythontips • • Oct 30 '21

Python3_Specific Is there a way to take output from function and use it as input in same function again for certain times.

27 Upvotes

I'm new to python and I wanted to know if there's anyway you can have something as I describe, Like you have a function or code that give output and then you can take that same output and put it back into the same function, and can repeat this process for certain times. Is here any code or anything like that which can help. Thank you.


r/pythontips • • Aug 01 '21

Short_Video How to make a 3D Game in Python with Ursina Engine

27 Upvotes

Using the Ursina Engine, this can become quite simple

Check it out:

https://www.youtube.com/watch?v=UjW0Y3YoAVw


r/pythontips • • Jun 02 '21

Module Cython - Best Practices

27 Upvotes

Hello,

I'll need to make my python code run as fast as it can. I've settled down to use Cython after considering the alternatives. What are some best Cython practices and tips to utilize it to its full potential? Is there anything I'd need to watch out for? The purpose of my algorithm is to do quick calculations on live data.


r/pythontips • • May 31 '21

Python3_Specific Scraping images from google with selenium

27 Upvotes

Why do stuff manually when you have bot for The same! Create your own image downloader bot..

https://highontechs.com/uncategorized/web-scraping-images-from-google-with-selenium/

Give your thoughts on this


r/pythontips • • Mar 13 '21

Standard_Lib Going from python to Flutter(dart) vs Ionic (html/js/css)

27 Upvotes

I only know python and I think I'm pretty decent at it. Given that, I want to make a mobile app. Ive broken down my options to Ionic or Flutter. If I go with Ionic I have to learn css/html/javascript. If I go with flutter I have to learn dart. Which option would be the faster for me to learn and implement an app given I'm coming from only python? Anyone with relevant experience that can provide insight here?


r/pythontips • • Feb 22 '21

Python3_Specific Python Bootcamp 2021 - 2nd week

27 Upvotes

Hello everyone,

I hope you all are doing well! I wanted to take this opportunity to inform you about the progress of the ongoing Python Bootcamp.

Last week we completed the 2nd week. Here are the topics covered in the 2nd week of Python Bootcamp.

Day 9  - Python Tuples 
Day 10 - Python Sets 
Day 11 - If else operation 
Day 12 - For loops 
Day 13 - While Loops 
Day 14 - Understanding use of break, continue and pass 
Day 15 - Understanding Manual Iteration - __iter__ and __next__ 
Day 16 - Python Functions

If you feel like you would require a revision in any of the above-mentioned topics, make sure to check out each topic and solve the daily exercises.

Official Telegram Group


r/pythontips • • Jan 05 '21

Short_Video How to automate gameplay in Cyberpunk 2077 to boost your athletics with a Python script - tutorial

27 Upvotes

https://youtu.be/ZGdRyz2Dkk0

I love gaming, but sometimes endless grinding is not my thing - especially when it makes change my play style. Also, working a full time job sometimes disincentives endless grindage. Thank goodness for Python!

Above is my video. Feel free to modify. I have my github repo for ya'll to pull and make variations. Enjoy coding, gaming, and feel free to support the fledgling channel. Have a great week!!!


r/pythontips • • Jun 15 '20

Long_video Snake game in Python using Functions and Turtle module

27 Upvotes

r/pythontips • • Jun 13 '20

Long_video Python Blackjack Game with explain

27 Upvotes

r/pythontips • • Oct 15 '19

Python Tutorial : Python Logging Made Easy

27 Upvotes