fa
Feedback
Python for Data Analysts

Python for Data Analysts

رفتن به کانال در Telegram

Find top Python resources from global universities, cool projects, and learning materials for data analytics. For promotions: @coderfun Useful links: heylink.me/DataAnalytics

نمایش بیشتر

📈 تحلیل کانال تلگرام Python for Data Analysts

کانال Python for Data Analysts (@pythonanalyst) در بخش زبانی انگلیسی بازیگری فعال است. در حال حاضر جامعه شامل 51 492 مشترک است و جایگاه 2 607 را در دسته فناوری و برنامه‌ها و رتبه 7 356 را در منطقه الهند دارد.

📊 شاخص‌های مخاطب و پویایی

از زمان ایجاد در невідомо، پروژه رشد سریعی داشته و 51 492 مشترک جذب کرده است.

بر اساس آخرین داده‌ها در تاریخ 08 ژوئن, 2026، کانال فعالیت پایداری دارد. در ۳۰ روز گذشته تغییر اعضا برابر 204 و در ۲۴ ساعت گذشته برابر -16 بوده و همچنان دسترسی گسترده‌ای حفظ شده است.

  • وضعیت تأیید: تأیید نشده
  • نرخ تعامل (ER): میانگین تعامل مخاطب 5.19% است و در ۲۴ ساعت نخست پس از انتشار، محتوا معمولاً N/A% واکنش نسبت به کل مشترکان کسب می‌کند.
  • دسترسی پست‌ها: هر پست به طور میانگین 2 670 بازدید دریافت می‌کند. در اولین روز معمولاً 0 بازدید جمع‌آوری می‌شود.
  • واکنش‌ها و تعامل: مخاطبان به‌طور فعال حمایت می‌کنند؛ میانگین واکنش به هر پست 9 است.
  • علایق موضوعی: محتوا بر موضوعات کلیدی مانند visualization, panda, analyst, sql, analytic تمرکز دارد.

📝 توضیح و سیاست محتوایی

نویسنده این فضا را محل بیان دیدگاه‌های شخصی توصیف می‌کند:
Find top Python resources from global universities, cool projects, and learning materials for data analytics. For promotions: @coderfun Useful links: heylink.me/DataAnalytics

به لطف به‌روزرسانی‌های پرتکرار (آخرین داده در تاریخ 09 ژوئن, 2026)، کانال همواره به‌روز و دارای دسترسی بالاست. تحلیل‌ها نشان می‌دهد مخاطبان به‌طور فعال با محتوا تعامل دارند و آن را به نقطه اثرگذاری مهم در دسته فناوری و برنامه‌ها تبدیل کرده‌اند.

51 492
مشترکین
-1624 ساعت
+447 روز
+20430 روز
آرشیو پست ها
+5
import_data.pdf1.35 KB

Useful Python for data science cheat sheets 👇

5 key Python Libraries/ Concepts that are particularly important for Data Analysts 1. Pandas: Pandas is a powerful library for data manipulation and analysis in Python. It provides data structures like DataFrames and Series that make it easy to work with structured data. Pandas offers functions for reading and writing data, cleaning and transforming data, and performing data analysis tasks like filtering, grouping, and aggregating. 2. NumPy: NumPy is a fundamental package for scientific computing in Python. It provides support for large, multi-dimensional arrays and matrices, along with a collection of mathematical functions to operate on these arrays efficiently. NumPy is often used in conjunction with Pandas for numerical computations and data manipulation. 3. Matplotlib and Seaborn: Matplotlib is a popular plotting library in Python that allows you to create a wide variety of static, interactive, and animated visualizations. Seaborn is built on top of Matplotlib and provides a higher-level interface for creating attractive and informative statistical graphics. These libraries are essential for data visualization in data analysis projects. 4. Scikit-learn: Scikit-learn is a machine learning library in Python that provides simple and efficient tools for data mining and data analysis tasks. It includes a wide range of algorithms for classification, regression, clustering, dimensionality reduction, and more. Scikit-learn also offers tools for model evaluation, hyperparameter tuning, and model selection. 5. Data Cleaning and Preprocessing: Data cleaning and preprocessing are crucial steps in any data analysis project. Python offers libraries like Pandas and NumPy for handling missing values, removing duplicates, standardizing data types, scaling numerical features, encoding categorical variables, and more. Understanding how to clean and preprocess data effectively is essential for accurate analysis and modeling. By mastering these Python concepts and libraries, data analysts can efficiently manipulate and analyze data, create insightful visualizations, apply machine learning techniques, and derive valuable insights from their datasets.

Complete Python topics required for the Data Engineer role: https://t.me/sql_engineer/70

How to master Python from scratch🚀 1. Setup and Basics 🏁 - Install Python 🖥️: Download Python and set it up. - Hello, World! 🌍: Write your first Hello World program. 2. Basic Syntax 📜 - Variables and Data Types 📊: Learn about strings, integers, floats, and booleans. - Control Structures 🔄: Understand if-else statements, for loops, and while loops. - Functions 🛠️: Write reusable blocks of code. 3. Data Structures 📂 - Lists 📋: Manage collections of items. - Dictionaries 📖: Store key-value pairs. - Tuples 📦: Work with immutable sequences. - Sets 🔢: Handle collections of unique items. 4. Modules and Packages 📦 - Standard Library 📚: Explore built-in modules. - Third-Party Packages 🌐: Install and use packages with pip. 5. File Handling 📁 - Read and Write Files 📝 - CSV and JSON 📑 6. Object-Oriented Programming 🧩 - Classes and Objects 🏛️ - Inheritance and Polymorphism 👨‍👩‍👧 7. Web Development 🌐 - Flask 🍼: Start with a micro web framework. - Django 🦄: Dive into a full-fledged web framework. 8. Data Science and Machine Learning 🧠 - NumPy 📊: Numerical operations. - Pandas 🐼: Data manipulation and analysis. - Matplotlib 📈 and Seaborn 📊: Data visualization. - Scikit-learn 🤖: Machine learning. 9. Automation and Scripting 🤖 - Automate Tasks 🛠️: Use Python to automate repetitive tasks. - APIs 🌐: Interact with web services. 10. Testing and Debugging 🐞 - Unit Testing 🧪: Write tests for your code. - Debugging 🔍: Learn to debug efficiently. 11. Advanced Topics 🚀 - Concurrency and Parallelism 🕒 - Decorators 🌀 and Generators ⚙️ - Web Scraping 🕸️: Extract data from websites using BeautifulSoup and Scrapy. 12. Practice Projects 💡 - Calculator 🧮 - To-Do List App 📋 - Weather App ☀️ - Personal Blog 📝 13. Community and Collaboration 🤝 - Contribute to Open Source 🌍 - Join Coding Communities 💬 - Participate in Hackathons 🏆 14. Keep Learning and Improving 📈 - Read Books 📖: Like "Automate the Boring Stuff with Python". - Watch Tutorials 🎥: Follow video courses and tutorials. - Solve Challenges 🧩: On platforms like LeetCode, HackerRank, and CodeWars. 15. Teach and Share Knowledge 📢 - Write Blogs ✍️ - Create Video Tutorials 📹 - Mentor Others 👨‍🏫 I have curated the best interview resources to crack Python Interviews 👇👇 https://topmate.io/coding/898340 Hope you'll like it Like this post if you need more resources like this 👍❤️

Python Interview Questions for Data/Business Analysts in MNC: Question 1: Given a dataset in a CSV file, how would you read it into a Pandas DataFrame? And how would you handle missing values? Question 2: Describe the difference between a list, a tuple, and a dictionary in Python. Provide an example for each. Question 3: Imagine you are provided with two datasets, 'sales_data' and 'product_data', both in the form of Pandas DataFrames. How would you merge these datasets on a common column named 'ProductID'? Question 4: How would you handle duplicate rows in a Pandas DataFrame? Write a Python code snippet to demonstrate. Question 5: Describe the difference between '.iloc[] and '.loc[]' in the context of Pandas. Question 6: In Python's Matplotlib library, how would you plot a line chart to visualize monthly sales? Assume you have a list of months and a list of corresponding sales numbers. Question 7: How would you use Python to connect to a SQL database and fetch data into a Pandas DataFrame? Question 8: Explain the concept of list comprehensions in Python. Can you provide an example where it's useful for data analysis? Question 9: How would you reshape a long-format DataFrame to a wide format using Pandas? Explain with an example. Question 10: What are lambda functions in Python? How are they beneficial in data wrangling tasks? Question 11: Describe a scenario where you would use the 'groupby()' method in Pandas. How would you aggregate data after grouping? Question 12: You are provided with a Pandas DataFrame that contains a column with date strings. How would you convert this column to a datetime format? Additionally, how would you extract the month and year from these datetime objects? Question 13: Explain the purpose of the 'pivot_table' method in Pandas and describe a business scenario where it might be useful. Question 14: How would you handle large datasets that don't fit into memory? Are you familiar with Dask or any similar libraries? Question 15: In a dataset, you observe that some numerical columns are highly skewed. How can you normalize or transform these columns using Python? Python Interview Q&A: https://topmate.io/coding/898340 Like for more ❤️

Writing Python Lists
Writing Python Lists

Python Pandas.pdf9.40 MB

🎓 Data Analytics Contest 🚀 👩‍💻 Who: Final/Third year students (B.Tech/B.Sc/B.E/BCA/MCA/M.Tech) 📅 Date: 22nd June 2024 🕔 Time: 5PM - 7PM Register for FREE Now: 👇👇 https://bit.ly/4bgh2Br Top performers get internship/job referrals from partner companies with additional prices upto 5000 rs Amazing opportunity for freshers

Python Cheat Sheet-1.pdf

How to get job as python fresher? 1. Get Your Python Fundamentals Strong You should have a clear understanding of Python syntax, statements, variables & operators, control structures, functions & modules, OOP concepts, exception handling, and various other concepts before going out for a Python interview. 2. Learn Python Frameworks As a beginner, you’re recommended to start with Django as it is considered the standard framework for Python by many developers. An adequate amount of experience with frameworks will not only help you to dive deeper into the Python world but will also help you to stand out among other Python freshers. 3. Build Some Relevant Projects You can start it by building several minor projects such as Number guessing game, Hangman Game, Website Blocker, and many others. Also, you can opt to build few advanced-level projects once you’ll learn several Python web frameworks and other trending technologies. @crackingthecodinginterview 4. Get Exposure to Trending Technologies Using Python. Python is being used with almost every latest tech trend whether it be Artificial Intelligence, Internet of Things (IOT), Cloud Computing, or any other. And getting exposure to these upcoming technologies using Python will not only make you industry-ready but will also give you an edge over others during a career opportunity. 5. Do an Internship & Grow Your Network. You need to connect with those professionals who are already working in the same industry in which you are aspiring to get into such as Data Science, Machine learning, Web Development, etc. Python Interview Q&A: https://topmate.io/coding/898340 Like for more ❤️ ENJOY LEARNING 👍👍

Here are 5 key Python libraries/ concepts that are particularly important for data analysts: 1. Pandas: Pandas is a powerful library for data manipulation and analysis in Python. It provides data structures like DataFrames and Series that make it easy to work with structured data. Pandas offers functions for reading and writing data, cleaning and transforming data, and performing data analysis tasks like filtering, grouping, and aggregating. 2. NumPy: NumPy is a fundamental package for scientific computing in Python. It provides support for large, multi-dimensional arrays and matrices, along with a collection of mathematical functions to operate on these arrays efficiently. NumPy is often used in conjunction with Pandas for numerical computations and data manipulation. 3. Matplotlib and Seaborn: Matplotlib is a popular plotting library in Python that allows you to create a wide variety of static, interactive, and animated visualizations. Seaborn is built on top of Matplotlib and provides a higher-level interface for creating attractive and informative statistical graphics. These libraries are essential for data visualization in data analysis projects. 4. Scikit-learn: Scikit-learn is a machine learning library in Python that provides simple and efficient tools for data mining and data analysis tasks. It includes a wide range of algorithms for classification, regression, clustering, dimensionality reduction, and more. Scikit-learn also offers tools for model evaluation, hyperparameter tuning, and model selection. 5. Data Cleaning and Preprocessing: Data cleaning and preprocessing are crucial steps in any data analysis project. Python offers libraries like Pandas and NumPy for handling missing values, removing duplicates, standardizing data types, scaling numerical features, encoding categorical variables, and more. Understanding how to clean and preprocess data effectively is essential for accurate analysis and modeling. By mastering these Python concepts and libraries, data analysts can efficiently manipulate and analyze data, create insightful visualizations, apply machine learning techniques, and derive valuable insights from their datasets. Credits: https://t.me/free4unow_backup ENJOY LEARNING 👍👍

Lists 🆚 Tuples 🆚 Dictionaries What's the difference? Lists are mutable. Tuples are immutable. Dictionaries are associative. When should you use each? Lists: ⟶ When you want to add or remove elements ⟶ When you want to sort elements ⟶ When you want to slice elements Tuples: ⟶ When you want a constant object ⟶ When you want to send multiple in a function ⟶ When you want to return multiple from a function Dictionaries: ⟶ When you want to map keys to values ⟶ When you want to loop over the keys ⟶ When you want to validate if key exists Now, pick your weapon of mass data analysis and become a Python pro!

Frequently asked Python practice questions and answers in Data Analyst Interview: 1.Temperature Conversion: Write a program that converts a given temperature from Celsius to Fahrenheit or from Fahrenheit to Celsius based on user input. temp = float(input('Enter the temperature: ')) unit = input('Enter the unit (C/F): ').upper() if unit == 'C': converted = (temp * 9/5) + 32 print(f'Temperature in Fahrenheit: {converted}') elif unit == 'F': converted = (temp - 32) * 5/9 print(f'Temperature in Celsius: {converted}') else: print('Invalid unit') 2.Multiplication Table: Write a program that prints the multiplication table of a given number using a while loop. num = int(input('Enter a number: ')) i = 1 while i <= 10: print(f'{num} x {i} = {num * i}') i += 1 3.Greatest of Three Numbers: Write a program that takes three numbers as input and prints the greatest of the three. num1 = float(input('Enter first number: ')) num2 = float(input('Enter second number: ')) num3 = float(input('Enter third number: ')) if num1 >= num2 and num1 >= num3: print(f'The greatest number is {num1}') elif num2 >= num1 and num2 >= num3: print(f'The greatest number is {num2}') else: print(f'The greatest number is {num3}') 4.Sum of Even Numbers: Write a program that calculates the sum of all even numbers between 1 and a given number using a while loop. num = int(input('Enter a number: ')) total = 0 i = 2 while i <= num: total += i i += 2 print(f'The sum of even numbers up to {num} is {total}') 5.Check Armstrong Number: Write a program that checks if a given number is an Armstrong number. num = int(input('Enter a number: ')) sum_of_digits = 0 original_num = num while num > 0: digit = num % 10 sum_of_digits += digit ** 3 num //= 10 if sum_of_digits == original_num: print(f'{original_num} is an Armstrong number') else: print(f'{original_num} is not an Armstrong number') 6.Reverse a Number: Write a program that reverses the digits of a given number using a while loop. num = int(input('Enter a number: ')) reversed_num = 0 while num > 0: digit = num % 10 reversed_num = reversed_num * 10 + digit num //= 10 print(f'The reversed number is {reversed_num}') 7.Count Vowels and Consonants: Write a program that counts the number of vowels and consonants in a given string. string = input('Enter a string: ').lower() vowels = 'aeiou' vowel_count = 0 consonant_count = 0 for char in string: if char.isalpha(): if char in vowels: vowel_count += 1 else: consonant_count += 1 print(f'Number of vowels: {vowel_count}') print(f'Number of consonants: {consonant_count}')

These 6 videos will help you to get the product knowledge and case study solving skill 👇👇 https://t.me/caseinterviewscracked/18

𝐈𝐦𝐩𝐨𝐫𝐭𝐢𝐧𝐠 𝐍𝐞𝐜𝐞𝐬𝐬𝐚𝐫𝐲 𝐋𝐢𝐛𝐫𝐚𝐫𝐢𝐞𝐬: import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns 𝐋𝐨𝐚𝐝𝐢𝐧𝐠 𝐭𝐡𝐞 𝐃𝐚𝐭𝐚𝐬𝐞𝐭: df = pd.read_csv('your_dataset.csv') 𝐈𝐧𝐢𝐭𝐢𝐚𝐥 𝐃𝐚𝐭𝐚 𝐈𝐧𝐬𝐩𝐞𝐜𝐭𝐢𝐨𝐧: 1- View the first few rows: df.head() 2- Summary of the dataset: df.info() 3- Statistical summary: df.describe() 𝐇𝐚𝐧𝐝𝐥𝐢𝐧𝐠 𝐌𝐢𝐬𝐬𝐢𝐧𝐠 𝐕𝐚𝐥𝐮𝐞𝐬: 1- Identify missing values: df.isnull().sum() 2- Visualize missing values: sns.heatmap(df.isnull(), cbar=False, cmap='viridis') plt.show() 𝐃𝐚𝐭𝐚 𝐕𝐢𝐬𝐮𝐚𝐥𝐢𝐳𝐚𝐭𝐢𝐨𝐧: 1- Histograms: df.hist(bins=30, figsize=(20, 15)) plt.show() 2 - Box plots: plt.figure(figsize=(10, 6)) sns.boxplot(data=df) plt.xticks(rotation=90) plt.show() 3- Pair plots: sns.pairplot(df) plt.show() 4- Correlation matrix and heatmap: correlation_matrix = df.corr() plt.figure(figsize=(12, 8)) sns.heatmap(correlation_matrix, annot=True, cmap='coolwarm') plt.show() 𝐂𝐚𝐭𝐞𝐠𝐨𝐫𝐢𝐜𝐚𝐥 𝐃𝐚𝐭𝐚 𝐀𝐧𝐚𝐥𝐲𝐬𝐢𝐬: Count plots for categorical features: plt.figure(figsize=(10, 6)) sns.countplot(x='categorical_column', data=df) plt.show()

Exploratory Data Analysis (EDA) in Python involves a variety of techniques and tools to summarize, visualize, and understand the structure of a dataset. Here are some common EDA techniques using Python, along with relevant libraries:

𝐒𝐭𝐫𝐢𝐧𝐠 𝐌𝐚𝐧𝐢𝐩𝐮𝐥𝐚𝐭𝐢𝐨𝐧 𝐢𝐧 𝐏𝐲𝐭𝐡𝐨𝐧: Strings in Python are immutable sequences of characters. 𝟏- 𝐥𝐞𝐧(): 𝐑𝐞𝐭𝐮𝐫𝐧𝐬 𝐭𝐡𝐞 𝐥𝐞𝐧𝐠𝐭𝐡 𝐨𝐟 𝐭𝐡𝐞 𝐬𝐭𝐫𝐢𝐧𝐠. my_string = "Hello" length = len(my_string)  # length will be 5 𝟐- 𝐬𝐭𝐫(): 𝐂𝐨𝐧𝐯𝐞𝐫𝐭𝐬 𝐧𝐨𝐧-𝐬𝐭𝐫𝐢𝐧𝐠 𝐝𝐚𝐭𝐚 𝐭𝐲𝐩𝐞𝐬 𝐢𝐧𝐭𝐨 𝐬𝐭𝐫𝐢𝐧𝐠𝐬. num = 123 str_num = str(num)  # str_num will be "123" 𝟑- 𝐥𝐨𝐰𝐞𝐫() 𝐚𝐧𝐝 𝐮𝐩𝐩𝐞𝐫(): 𝐂𝐨𝐧𝐯𝐞𝐫𝐭 𝐚 𝐬𝐭𝐫𝐢𝐧𝐠 𝐭𝐨 𝐥𝐨𝐰𝐞𝐫𝐜𝐚𝐬𝐞 𝐨𝐫 𝐮𝐩𝐩𝐞𝐫𝐜𝐚𝐬𝐞. my_string = "Hello" lower_case = my_string.lower()  # lower_case will be "hello" upper_case = my_string.upper()  # upper_case will be "HELLO" 𝟒- 𝐬𝐭𝐫𝐢𝐩(): 𝐑𝐞𝐦𝐨𝐯𝐞𝐬 𝐥𝐞𝐚𝐝𝐢𝐧𝐠 𝐚𝐧𝐝 𝐭𝐫𝐚𝐢𝐥𝐢𝐧𝐠 𝐰𝐡𝐢𝐭𝐞𝐬𝐩𝐚𝐜𝐞 𝐟𝐫𝐨𝐦 𝐚 𝐬𝐭𝐫𝐢𝐧𝐠. my_string = "   Hello   " stripped_string = my_string.strip()  # stripped_string will be "Hello" 𝟓- 𝐬𝐩𝐥𝐢𝐭(): 𝐒𝐩𝐥𝐢𝐭𝐬 𝐚 𝐬𝐭𝐫𝐢𝐧𝐠 𝐢𝐧𝐭𝐨 𝐚 𝐥𝐢𝐬𝐭 𝐨𝐟 𝐬𝐮𝐛𝐬𝐭𝐫𝐢𝐧𝐠𝐬 𝐛𝐚𝐬𝐞𝐝 𝐨𝐧 𝐚 𝐝𝐞𝐥𝐢𝐦𝐢𝐭𝐞𝐫. my_string = "apple,banana,orange" fruits = my_string.split(",")  # fruits will be ["apple", "banana", "orange"] 𝟔- 𝐣𝐨𝐢𝐧(): 𝐉𝐨𝐢𝐧𝐬 𝐭𝐡𝐞 𝐞𝐥𝐞𝐦𝐞𝐧𝐭𝐬 𝐨𝐟 𝐚 𝐥𝐢𝐬𝐭 𝐢𝐧𝐭𝐨 𝐚 𝐬𝐢𝐧𝐠𝐥𝐞 𝐬𝐭𝐫𝐢𝐧𝐠 𝐮𝐬𝐢𝐧𝐠 𝐚 𝐬𝐩𝐞𝐜𝐢𝐟𝐢𝐞𝐝 𝐬𝐞𝐩𝐚𝐫𝐚𝐭𝐨𝐫. fruits = ["apple", "banana", "orange"] my_string = ",".join(fruits)  # my_string will be "apple,banana,orange" 𝟕- 𝐟𝐢𝐧𝐝() 𝐚𝐧𝐝 𝐢𝐧𝐝𝐞𝐱(): 𝐒𝐞𝐚𝐫𝐜𝐡 𝐟𝐨𝐫 𝐚 𝐬𝐮𝐛𝐬𝐭𝐫𝐢𝐧𝐠 𝐰𝐢𝐭𝐡𝐢𝐧 𝐚 𝐬𝐭𝐫𝐢𝐧𝐠 𝐚𝐧𝐝 𝐫𝐞𝐭𝐮𝐫𝐧 𝐢𝐭𝐬 𝐢𝐧𝐝𝐞𝐱. my_string = "Hello, world!" index1 = my_string.find("world")  # index1 will be 7 index2 = my_string.index("world")  # index2 will also be 7 𝟖- 𝐫𝐞𝐩𝐥𝐚𝐜𝐞(): 𝐑𝐞𝐩𝐥𝐚𝐜𝐞𝐬 𝐨𝐜𝐜𝐮𝐫𝐫𝐞𝐧𝐜𝐞𝐬 𝐨𝐟 𝐚 𝐬𝐮𝐛𝐬𝐭𝐫𝐢𝐧𝐠 𝐰𝐢𝐭𝐡 𝐚𝐧𝐨𝐭𝐡𝐞𝐫 𝐬𝐮𝐛𝐬𝐭𝐫𝐢𝐧𝐠. my_string = "Hello, world!" new_string = my_string.replace("world", "Python")  # new_string will be "Hello, Python!" 𝟗- 𝐬𝐭𝐚𝐫𝐭𝐬𝐰𝐢𝐭𝐡() 𝐚𝐧𝐝 𝐞𝐧𝐝𝐬𝐰𝐢𝐭𝐡(): 𝐂𝐡𝐞𝐜𝐤𝐬 𝐢𝐟 𝐚 𝐬𝐭𝐫𝐢𝐧𝐠 𝐬𝐭𝐚𝐫𝐭𝐬 𝐨𝐫 𝐞𝐧𝐝𝐬 𝐰𝐢𝐭𝐡 𝐚 𝐬𝐩𝐞𝐜𝐢𝐟𝐢𝐞𝐝 𝐬𝐮𝐛𝐬𝐭𝐫𝐢𝐧𝐠. my_string = "Hello, world!" starts_with_hello = my_string.startswith("Hello")  # True ends_with_world = my_string.endswith("world")  # False 𝟏𝟎- 𝐜𝐨𝐮𝐧𝐭(): 𝐂𝐨𝐮𝐧𝐭𝐬 𝐭𝐡𝐞 𝐨𝐜𝐜𝐮𝐫𝐫𝐞𝐧𝐜𝐞𝐬 𝐨𝐟 𝐚 𝐬𝐮𝐛𝐬𝐭𝐫𝐢𝐧𝐠 𝐢𝐧 𝐚 𝐬𝐭𝐫𝐢𝐧𝐠. my_string = "apple, banana, orange, banana" count = my_string.count("banana")  # count will be 2 Python Complete Notion Notes with 5 Practical Projects 👇👇 https://topmate.io/analyst/871454 Hope you'll like it Like this post if you need more resources like this 👍❤️