0
0
Computer Networksknowledge~30 mins

Cellular networks (4G, 5G) in Computer Networks - Mini Project: Build & Apply

Choose your learning style9 modes available
Understanding Cellular Networks: 4G and 5G
📖 Scenario: You are learning about cellular networks used in mobile phones and devices. These networks connect devices wirelessly to the internet and to each other. 4G and 5G are two common generations of these networks, each with different features and speeds.Imagine you want to organize information about these networks to understand their differences and uses.
🎯 Goal: Build a simple data structure that holds key facts about 4G and 5G networks. Then, add a filter to find networks that support a certain feature. Finally, create a summary list of network names that meet the filter criteria.
📋 What You'll Learn
Create a dictionary with exact keys '4G' and '5G' and their feature details
Add a variable to hold a feature to search for
Use a loop or comprehension to find networks supporting that feature
Create a final list of network names that support the feature
💡 Why This Matters
🌍 Real World
Cellular networks like 4G and 5G are everywhere, powering mobile internet and communication. Understanding their features helps in choosing devices and services.
💼 Career
Network engineers, mobile app developers, and tech support professionals benefit from knowing how cellular networks differ and how to organize this information.
Progress0 / 4 steps
1
Create the cellular networks data
Create a dictionary called cellular_networks with two keys: '4G' and '5G'. Each key should map to another dictionary with these exact entries:
'speed': 'up to 1 Gbps' and 'latency': 'around 50 ms' for 4G,
and 'speed': 'up to 20 Gbps' and 'latency': 'around 1 ms' for 5G.
Computer Networks
Need a hint?

Use a dictionary with keys '4G' and '5G'. Each key's value is another dictionary with 'speed' and 'latency' keys.

2
Set the feature to search for
Create a variable called search_feature and set it to the string 'latency'.
Computer Networks
Need a hint?

Just assign the string 'latency' to the variable search_feature.

3
Find networks supporting the feature
Create a list called networks_with_feature that contains the names of networks from cellular_networks where the inner dictionary has the key equal to search_feature. Use a list comprehension with for network in cellular_networks.
Computer Networks
Need a hint?

Use a list comprehension to check if search_feature is a key in each network's dictionary.

4
Create a summary list of network names
Create a variable called summary and set it to the list networks_with_feature. This will hold the final list of network names that support the feature.
Computer Networks
Need a hint?

Assign the list networks_with_feature to the variable summary.