Skip to content

Instantly share code, notes, and snippets.

View budgetdevv's full-sized avatar
🤠
Professional Dumbass

TrumpMcDonaldz budgetdevv

🤠
Professional Dumbass
View GitHub Profile
#Write your solution (for loop)
toppings = ['sprinkles', 'chocolate syrup', 'whipped cream', 'nuts', 'cherries'];
# Prompt the user to enter a letter
letter = input("Enter a letter to find the first topping starting with that letter: ").lower();
for item in toppings:
if (item[0] == letter):
print(f"First topping starting with '{letter}': {item}");
break;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using FluentAssertions;
using McUtilities.Memory;
using NUnit.Framework;
namespace McUtilitiesTest
{
public class QuickDictionaryTests
{