Commands in Python: 1)len- to get the number of items in an object. 2)for loop- to execute a set of statements by iterating over a sequence. 3)while loop- to execute a set of statements as long as the given condition is true. 4)String-used on string objects. 5)List- used to store multiple elements in a single object. #HaveANiceDay #DataAnalytics #PythonBasics
Thameema M Shukkoor’s Post
More Relevant Posts
-
Commands in Python: 1)print- to print a message 2)type- to check the type or class of an object. 3)range- to generate a sequence of integers starting from 0 by default to n where n is not included in the generated numbers. 4)round- to round a number to a given precision in decimal digits. 5)input- to take input from the user. #HaveANiceDay #DataAnalytics #PythonBasics
To view or add a comment, sign in
-
💻 100 Days of Python Challenge – Day 4: loops For Loop A for loop iterates over a given sequence such as a list, tuple, string, or range. It executes a block of code once for each item in the sequence. While Loop A while loop repeatedly executes a block of code as long as a specified condition is true. It is useful when the number of iterations is not known beforehand. #Python #ForLoop #WhileLoop #PythonProgramming #100DaysOfCode #LearnPython #CodingJourney #CodeNewbie #ProgrammingBasics #PythonLoops #DeveloperInProgress
To view or add a comment, sign in
-
Today I solved an interesting Set Theory problem using Python 💻 The task was to determine whether one set is a subset, superset, or equal to another — without using any built-in functions! 🧩 Problem Statement: Write a Python program to check whether Set1 is a subset, superset, or equal to Set2. If none of these, print "No subset or superset relation". 🧠 Approach (without built-ins): #Python #DSA #CodingJourney #ProblemSolving #MERNStackDeveloper #100DaysOfCode #LearnByBuilding #CodeNewbie #ProgrammingChallenge #PythonDevelopers #LinkedInCodingCommunity
To view or add a comment, sign in
-
-
Hello connection! Exploring Python in greater detail today! I've been concentrating on functions, and I adore how straightforward yet effective they are. In essence, a function is a mini-program that performs a single task. The finest aspect? It keeps everything neat and orderly by allowing you to reuse code repeatedly. (This is known to programmers as "Don't Repeat Yourself," or DRY.) Def is the keyword that starts every function! #LearningToCode #DRYCode #Functions #Digitinstitute #Python #CodingBasics
To view or add a comment, sign in
-
#Square_root without #SQRT function or how to make #SQRT function in python #Code: (Assumption: number is positive) x=int(input("enter:")) y=0 for i in range(0,1000000,1): while x-y*y>=0.001: y=y+0.0001 print(round(y,4))
To view or add a comment, sign in
-
-
Day 55/100 of #100DaysOfCodeChallenge Today’s focus was on Tuples & Sequences in Python a key concept for understanding data immutability and efficient data handling. Key Learnings: 1.Creating and using Tuples effectively 2.Understanding immutability of tuples 3.Performing Membership checks using in and not in 4.Exploring Packing and Unpacking in sequences This session deepened my understanding of how Python manages immutable data types and sequence operations efficiently. Every concept is bringing me closer to mastering Python! #Python #CodingChallenge #LearningJourney #NxtWave #100DaysOfCode #DataStructures
To view or add a comment, sign in
-
-
In this article, we’ll break down the essentials of using APIs for data collection — why they matter, how they work, and how to get started with them in Python. https://lnkd.in/dBGXdrMy
To view or add a comment, sign in
-
Is your Python function signature starting to look like a grocery list? In my latest video, I show how to reduce the number of arguments you pass around by using the Context Object Pattern. ✅ Cleaner APIs ✅ Easier testing ✅ Fewer bugs But... there's a catch. As I show in the video, this pattern can also make things worse if you use it the wrong way. 📺 Watch here → https://lnkd.in/eH5GpRW2 #Python #CleanCode #SoftwareDesign #ArjanCodes #DesignPatterns
To view or add a comment, sign in
-
-
🔁 Loops in Python Loops help automate repetitive tasks and make code efficient. Types: for loop: Iterates through a sequence (like list, tuple, or string). while loop: Runs as long as a given condition is True. Can use break, continue, and pass for control flow. #DataAnalytics #Learningjourney #Python
To view or add a comment, sign in
-
🐍 Day 04 of my #100DaysLogicChallenge Today’s topic: The Walrus Operator (:=) in Python 💡 This operator lets you assign and use a variable in the same expression, making code cleaner and more logical. 🧠 Key learnings: Introduced in Python 3.8 Helps reduce redundancy in loops and conditions Great for simplifying if and while statements Keeps logic-focused code concise and expressive Every day, one step closer to writing smarter logic 🧩 #100DaysLogicChallenge #Python #LogicBuilding #Day04 #WalrusOperator #CodeSmarter #PythonTips #LearnByBuilding #ProblemSolving
To view or add a comment, sign in
-
Explore related topics
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