DEV Community

Ramya .C
Ramya .C

Posted on

Day 11 of My Data Analytics Journey!

Today, I focused on learning Python Dictionaries – a very powerful and essential part of Python, especially useful in real-world data analytics tasks. As a slow learner, I gave extra time to understand how they work and practiced using them in programs.

What I Learned:

  • Dictionary creation and usage
  • Key-value pair manipulation
  • Real-time examples using dictionaries

Practice Program – Fibonacci Series (Print only numbers divisible by 5 up to 100):

# Fibonacci series using dictionary, print only numbers divisible by 5 up to 100

fib = {0: 0, 1: 1}
i = 2
while True:
    fib[i] = fib[i-1] + fib[i-2]
    if fib[i] > 100:
        break
    i += 1

# Print values divisible by 5
for value in fib.values():
    if value % 5 == 0:
        print(value)
Enter fullscreen mode Exit fullscreen mode

Output:

0
5
55
60
65
70
75
80
85
90
95
100
Enter fullscreen mode Exit fullscreen mode

Why this matters:

Understanding how to use dictionaries in Python helps manage structured data more efficiently. This is especially useful when working with real-time projects like data analysis, APIs, and dashboards.


Thanks for reading my journey today!
Let’s keep growing and sharing our learning every day! 💪📊

#100DaysOfCode #Python #DataAnalytics #DevTo #WomenInTech #Fibonacci #SlowLearner

Top comments (0)