First Non Repeating Character Using Hash
📖 Scenario: Imagine you are building a simple text analyzer tool. One of the features is to find the first character in a sentence that does not repeat. This helps highlight unique characters for fun word games or puzzles.
🎯 Goal: Build a program that finds the first non-repeating character in a given string using a hash (dictionary) to count character occurrences.
📋 What You'll Learn
Create a string variable with a specific sentence
Create a dictionary to count characters
Use a loop to fill the dictionary with character counts
Use another loop to find the first character with count 1
Print the first non-repeating character or a message if none found
💡 Why This Matters
🌍 Real World
Finding unique characters is useful in text analysis, cryptography, and word games.
💼 Career
Understanding how to count and analyze data using dictionaries is a key skill in programming and data processing jobs.
Progress0 / 4 steps