#a Python programmer
Explore tagged Tumblr posts
lost-coder · 6 months ago
Text
The Zen of Python
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one—and preferably only one—obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
57 notes · View notes
futureheartzs · 5 months ago
Text
dev process of my submission for hackapet by hack club!!
Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media
drew all the assets, wrote all the code, consumed all the energy drinks xD
overall an incredibly fun experience!! learning pixel art and ignoring my psychology tests were the biggest highlights :3
now onto the final push to submit on time >:D
78 notes · View notes
nixcraft · 3 months ago
Text
o: “why is this book so big and long?” Oh: “It’s mostly whitespace 😅”
Tumblr media
42 notes · View notes
once-was-poison-ivy · 1 month ago
Text
System.out.println("one of the less known side effects of coding in python is that you forget semi colons")
20 notes · View notes
secondwheel · 5 months ago
Text
Tumblr media
This again?? Check out a similar post for the sciences
42 notes · View notes
computer-nerd-girl · 2 years ago
Text
Tumblr media
484 notes · View notes
izicodes · 2 years ago
Note
hi!! do you have any free resources or textbooks for learning python? i’m doing my dissertation and i need a refresher before i start doing it properly. thanks!!
Hiya! 💗
Here you go:
Book
Python Objects and Classes
Roadmap.sh
Random Python Resources
Top 20 Python Projects for Beginners to Master the Language
Free Programming Books
Python Notes and Resources by @trialn1error
Python Official Roadmap
Python Project List
Python 3 Cheat Sheet
Python Cheatsheet for Beginners
These are the ones' I've shared on my blog over the years! Hope their helpful! 🥰👍🏾💗
344 notes · View notes
Text
hello world.
i am 371 lines of python script
i randomly generate tumblr posts
i have 31100 possible original posts
open for suggestions for new words, please submit in ask box
new posts WHENEVER I FEEL LIKE IT
325 notes · View notes
Text
Tumblr media
Post #91: Pinterest, @usamaawan5752, Python Road Map, 2023.
141 notes · View notes
mr-abhishek-kumar · 2 years ago
Text
Augmented assignment operators in python
Augmented assignment operators in Python combine addition and assignment in one statement. Instead of writing a = a + 1, you can write a += 1. This can make your code more concise and readable.
There are many augmented assignment operators in Python, including:
+= (addition)
-= (subtraction)
*= (multiplication)
/= (division)
//= (floor division)
%= (modulus)
**= (exponentiation)
&= (bitwise AND)
|= (bitwise OR)
^= (bitwise XOR)
<<= (bitwise left shift)
>>= (bitwise right shift)
Augmented assignment operators can be used with any Python variable, including numbers, strings, lists, and dictionaries.
Here are some examples of how to use augmented assignment operators in Python:
Python
# Add 1 to the variable a a = 1 a += 1 # Subtract 2 from the variable b b = 10 b -= 2 # Multiply 3 by the variable c c = 5 c *= 3 # Divide 4 by the variable d d = 10 d /= 4 # Floor divide 5 by the variable e e = 10 e //= 5 # Take the modulus of 6 by the variable f f = 10 f %= 6 # Raise 7 to the power of 2 g = 7 g **= 2 # Perform a bitwise AND operation on the variables h and i h = 10 i = 5 h &= i # Perform a bitwise OR operation on the variables j and k j = 10 k = 5 j |= k # Perform a bitwise XOR operation on the variables l and m l = 10 m = 5 l ^= m # Perform a bitwise left shift on the variable n by 1 bit n = 10 n <<= 1 # Perform a bitwise right shift on the variable o by 1 bit o = 10 o >>= 1
Augmented assignment operators can be a powerful tool for writing concise and readable Python code. They can be used with any Python variable, and they can be used to perform a variety of arithmetic and bitwise operations.
75 notes · View notes
futureheartzs · 7 months ago
Text
born to code, forced to learn theory 💔💔💔
Tumblr media
102 notes · View notes
nixcraft · 10 months ago
Text
Java was released in 1995
Python was released in 1991
Not just Java is popular, but it dominates the enterprise market. Truth is hard to swallow.
26 notes · View notes
hatsunemimikyu · 5 months ago
Text
Tumblr media
This just in: Python language invents instant HRT
8 notes · View notes
pov-amna · 2 years ago
Text
Tumblr media
When you find out that your 'original' code is just a copy of a copy of a copy...
133 notes · View notes
d0nutzgg · 2 years ago
Text
Tumblr media
This is part of a new project I am doing for a Facebook app that can alert someone when there is suspicious activity on their account, and block people who post rude comments and hate speech using a BERT model I am training on a dataset of hate speech. It automatically blocks people who are really rude / mean and keeps your feed clean of spam. I am developing it right now for work and for @emoryvalentine14 to test out and maybe in the future I will make it public.
I love NLP :D Also I plan to host this server probably on Heroku or something after it is done.
74 notes · View notes
izicodes · 2 years ago
Text
Python Objects and Classes | Resources ✨
Tumblr media
Understanding classes and objects makes you better prepared to use Python's data model and full feature set, which will lead to cleaner and more “pythonic” code! The way I be forgetting about Python objects and classes, I need this really 😭🙌🏾
Here is a link to the slideshow: LINK 🐍
132 notes · View notes