Python Lesson 3: Dictionaries and User's Input (#TheClassofAI)

preview_player
Показать описание
In this tutorial, we have covered the following topics:

1. Dictionaries
2. User's Input

The Google Colab Python notebook has been used: To find out more about Colab, pleas see my videos:

Google Colab is a free cloud service and now it supports free GPU! You can:
1. Improve your Python programming language coding skills.
2. Develop deep learning applications using popular libraries such as Keras,
TensorFlow, PyTorch, and OpenCV.

Code for this video:

Рекомендации по теме
Комментарии
Автор

Hi there, new here trying to learn python i am making this program to call a value from the dictionary inputted by user but i am stuck wondering if you could give me a hint
alphanum = {"a": 1, "j": 1, "s": 1, "b": 2, "k": 2, "t": 2, "c": 3, "l": 3, "u": 3, "d": 4, "m": 4, "v": 4,
"e": 5, "n": 5, "w": 5, "f": 6, "o": 6, "x": 6, "g": 7, "p": 7, "y": 7, "h": 8, "q": 8, "z": 8,
"i": 9, "r": 9}
name = input("enter your first name: ")
for key, value in alphanum():
print(value('name'))

fig