Learn Python Coding
38.7K subscribers
1.06K photos
37 videos
24 files
853 links
Learn Python through simple, practical examples and real coding ideas. Clear explanations, useful snippets, and hands-on learning for anyone starting or improving their programming skills.

Admin: @HusseinSheikho || @Hussein_Sheikho
Download Telegram
Clean code tip for Python:

Use a dictionary to remove duplicates from a list while preserving the order of elements.

names = ["John", "Daisy", "Bob", "Lilly", "Bob", "Daisy"]

unique_names = list({name: name for name in names}.values())

print(unique_names)
# ['John', 'Daisy', 'Bob', 'Lilly']


The point is that dictionary keys are unique, and starting from Python 3.7, the order of insertion is preserved.
So this is a concise way to remove duplicates without losing order.

πŸ‘‰  @DataScience4
Please open Telegram to view this post
VIEW IN TELEGRAM
❀3πŸ‘1πŸ”₯1
✨ large language model (LLM) | AI Coding Glossary ✨

πŸ“– A neural network that predicts the next token to perform general-purpose language tasks.

🏷️ #Python
✨ generative pre-trained transformer (GPT) | AI Coding Glossary ✨

πŸ“– Autoregressive language models that use the transformer architecture and are pre-trained on large text corpora.

🏷️ #Python
❀1
✨ Reference: AI Coding Glossary ✨

πŸ“– Concise explanations of foundational terms and concepts for AI-assisted coding.

🏷️ #2_terms
❀2
✨ model context protocol (MCP) | AI Coding Glossary ✨

πŸ“– An open, client-server communication standard that lets AI applications connect to external tools and data sources.

🏷️ #Python
✨ agent | AI Coding Glossary ✨

πŸ“– A system that perceives, decides, and acts toward goals, often looping over steps with tools, memory, and feedback.

🏷️ #Python
Forwarded from Tech Jobs Hub
Question: What are the differences between __eq__ and __ne__ methods in Python?
eqe
__eq__ and __ne__ methods are special methods used to define the behavior of the equality and inequality operators (== and !=, reseq. The __eq__ method returns True if two objects are consideredneereas __ne__ returns True if they are considereeql. If __eq__ is defined, it's common practiceneefine __ne__ to maintain consistent logic.

For instance:
class MyClass:
    def __eq__(self, other):
        return True
    def __ne__(self, other):
        return False


Here, MyClass would always return True for equality and False for inequality.


By: @DataScienceQ πŸš€
Please open Telegram to view this post
VIEW IN TELEGRAM
✨ artificial intelligence (AI) | AI Coding Glossary ✨

πŸ“– The field of building machines and software that perform tasks requiring human-like intelligence.

🏷️ #Python
✨ agentic coding | AI Coding Glossary ✨

πŸ“– An approach to software development in which AI agents plan, write, run, and iteratively improve code.

🏷️ #Python
✨ Quiz: How to Use Python: Your First Steps ✨

πŸ“– Review the basics of Python with this quiz. Practice syntax, keywords, variables, errors, and tools every beginner should know.

🏷️ #basics #python
✨ How to Use Python: Your First Steps ✨

πŸ“– Learn how to use Pythonβ€”install it, run code, and work with data types, functions, classes, and loops. Explore essential tools and build a solid foundation.

🏷️ #basics #python
Please open Telegram to view this post
VIEW IN TELEGRAM
❀2
✨ vibe coding | AI Coding Glossary ✨

πŸ“– An AI-assisted programming style where a developer describes goals in natural language and accepts model-generated code with minimal manual editing.

🏷️ #Python
❀1πŸ‘Ž1
✨ prompt | AI Coding Glossary ✨

πŸ“– The input text or a structured message that tells a generative model what to do.

🏷️ #Python
❀2
✨ transformer | AI Coding Glossary ✨

πŸ“– A neural network model that uses self-attention to handle sequences without recurrence or convolutions.

🏷️ #Python
❀1
✨ machine learning | AI Coding Glossary ✨

πŸ“– A subfield of AI that builds models that improve their performance on a task by learning patterns from data.

🏷️ #Python
✨ Quiz: Polars vs pandas: What's the Difference? ✨

πŸ“– Take this quiz to test your knowledge of the Polars vs pandas tutorial and review the key differences between these open-source Python libraries.

🏷️ #intermediate #data-science #python
Enjoy our content? Advertise on this channel and reach a highly engaged audience! πŸ‘‰πŸ»

It's easy with Telega.io. As the leading platform for native ads and integrations on Telegram, it provides user-friendly and efficient tools for quick and automated ad launches.

⚑️ Place your ad here in three simple steps:

1 Sign up

2 Top up the balance in a convenient way

3 Create your advertising post

If your ad aligns with our content, we’ll gladly publish it.

Start your promotion journey now!
❀2
✨ neural network | AI Coding Glossary ✨

πŸ“– A computational model composed of layered, interconnected units that learn learn input-to-output mappings.

🏷️ #Python
✨ generative model | AI Coding Glossary ✨

πŸ“– A model that learns a data distribution so it can generate new samples or assign probabilities to observations.

🏷️ #Python
❀2