🚀 Tuples (Python) Tuples are ordered, immutable collections of items. They are defined using parentheses `()`. Once a tuple is created, you cannot modify its contents. Tuples are often used to store related data that should not be changed. They are generally more memory-efficient than lists. Learn more on our app: https://lnkd.in/gefySfsc #Python #PythonDev #DataScience #WebDev #professional #career #development
Tuples in Python: Ordered Immutable Collections
More Relevant Posts
-
🚀 Creating and Importing Modules (Python) To create a module, simply save Python code in a `.py` file. The module name is derived from the filename. To use the module in another script, use the `import` statement. You can import the entire module or specific functions/classes from it. The `as` keyword can be used to create an alias for the module name for easier access. #Python #PythonDev #DataScience #WebDev #professional #career #development
To view or add a comment, sign in
-
-
Want to take a #Python #Pandas series of strings, and get datetime values? Use pd.to_datetime: pd.to_datetime(df['x']) Notice: It's not a method! It's a top-level pd function. Specify a non-standard "format" with a strftime string: pd.to_datetime(df['x'], format='%d/%m/%Y')
To view or add a comment, sign in
-
-
🚀 Scope of Variables (Python) The scope of a variable determines where it can be accessed in the code. Variables defined inside a function have local scope and are only accessible within that function. Variables defined outside any function have global scope and can be accessed from anywhere in the program. Python uses the LEGB rule (Local, Enclosing, Global, Built-in) to resolve variable names. #Python #PythonDev #DataScience #WebDev #professional #career #development
To view or add a comment, sign in
-
-
There is an important python concept hidden here , can you guess what ? class Hai: def show(self,a,b): print('Hai - show()') print(a,b) class Hello(Hai): def show(self,a): print('Hello - show()') print(a) hello = Hello() hello.show(10) hello.show(10,20) #python
To view or add a comment, sign in
-
Most Python beginners don’t notice this. print() vs return They both “give output”. But they are not the same. print() 👉 Displays output on screen Example: print("Hello") return 👉 Sends value back from a function Example: def greet(): return "Hello" One shows output. One sends value. Understanding this will make your functions more powerful. 👉 Did you know this difference before? #BluJayTechnologies #Learning #Python #SoftwareCoaching
To view or add a comment, sign in
-
-
STREAMLIT A new Python library that lets you make web-based user interfaces with pure Python. And since I discovered this, it's been my absolute go-to for spinning up simple Python websites. It's extremely useful for data science and AI-related apps: https://streamlit.io/ #WebApps#WebAppDevelopment#AntonGlenbovith#Dashboards#PythonProgramming
To view or add a comment, sign in
-
😳 Looks easy… but 90% developers get this wrong! 🧠 Quick Python Check: print(bool("False")) 💬 What will be the output? A) True B) False C) Error D) None At first glance, many assume the answer immediately… but this question actually tests your understanding of truthy vs falsy values in Python. 💡 Small concepts like this often make a big difference in debugging and real-world coding. 👇 Drop your answer in the comments Bonus: explain your reasoning! #Python #SoftwareEngineering #CodingChallenge #DeveloperSkills #Learning
To view or add a comment, sign in
-
-
Back to basics with Python! 🐍 I have been practicing my Python skills lately and just finished building a simple Number Guessing Game. It is a simple project, but it helped me practice: •Using the random module •Working with loops •Handling user input and logic Check out my code on GitHub: https://lnkd.in/gUTpPEzg #Python #Coding #BTech #LearningEveryday #BuildInPublic #Numberguessinggame #GuessTheNumberGameinPython #Pythonproject #PythonMiniProject
To view or add a comment, sign in
-
🧠 Python Logic Check — Quick Challenge Consider the following snippet: x = 10 x += x == 10 print(x) At first glance, it looks straightforward — but it tests your understanding of how Python handles boolean expressions. 💡 Question: What will be the output? A) 10 B) 11 C) True D) Error 📌 Small details like this often separate beginners from experienced developers. 💬 Drop your answer in the comments — and explain your reasoning if you can. #Python #SoftwareEngineering #CodingChallenge #DeveloperMindset #Learning
To view or add a comment, sign in
-
More from this author
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development