- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Part 5/2: Solutions of first mini project (for loops, if statements, & data structure manipulation)
In this video, we will answer and elaborate on the first part of Python mini projects about Tuples, Dictionaries, Sets, Lists, for loops, conditional statements, and data structure manipulation
You will find the complete explanation regarding the question in the following link:
https://www.youtube.com/watch?v=VePbhuinQO8&list=PLCxnvDblgXGTfJcwQx99Rmswdth7CmF_8&index=5&t=0s
here is the link to the first part of the solutions
https://www.youtube.com/watch?v=oiTH7ij5Oao&t=5s
here are the question that we want to solve them together
5. Tuple: Create a tuple named "most_common_words" that contains the top 5 most frequently occurring words along with their frequencies from the "word_counts" dictionary. Print each word and its frequency on a separate line, along with an order number.
6. For Loop: Write a for loop to iterate over the "most_common_words" tuple. For each word, calculate the sum of the ASCII values of its characters and print only the word, the calculated sum, and the percentage of the sum relative to the total sum of all words.
7. If Statement: Write an if statement to check if a specific word exists in the "unique_words" set. If it does, print "Word found"; otherwise, print "Word not found".
8. List Manipulation: Remove all the empty strings from the "data_list".
9. Dictionary Manipulation: Create a new dictionary named "word_info" that maps each word in the "unique_words" set to a dictionary containing its length, frequency (obtained from the "word_counts" dictionary), and a list of characters in reverse order. Print the "word_info" dictionary.
10. Set Manipulation: Remove a specific word from the "unique_words" set.
#python #opensource
Видео Part 5/2: Solutions of first mini project (for loops, if statements, & data structure manipulation) канала GISWorld
You will find the complete explanation regarding the question in the following link:
https://www.youtube.com/watch?v=VePbhuinQO8&list=PLCxnvDblgXGTfJcwQx99Rmswdth7CmF_8&index=5&t=0s
here is the link to the first part of the solutions
https://www.youtube.com/watch?v=oiTH7ij5Oao&t=5s
here are the question that we want to solve them together
5. Tuple: Create a tuple named "most_common_words" that contains the top 5 most frequently occurring words along with their frequencies from the "word_counts" dictionary. Print each word and its frequency on a separate line, along with an order number.
6. For Loop: Write a for loop to iterate over the "most_common_words" tuple. For each word, calculate the sum of the ASCII values of its characters and print only the word, the calculated sum, and the percentage of the sum relative to the total sum of all words.
7. If Statement: Write an if statement to check if a specific word exists in the "unique_words" set. If it does, print "Word found"; otherwise, print "Word not found".
8. List Manipulation: Remove all the empty strings from the "data_list".
9. Dictionary Manipulation: Create a new dictionary named "word_info" that maps each word in the "unique_words" set to a dictionary containing its length, frequency (obtained from the "word_counts" dictionary), and a list of characters in reverse order. Print the "word_info" dictionary.
10. Set Manipulation: Remove a specific word from the "unique_words" set.
#python #opensource
Видео Part 5/2: Solutions of first mini project (for loops, if statements, & data structure manipulation) канала GISWorld
Python tutorials GIS Data manipulation String operations List manipulation Set operations Dictionary manipulation Tuple operations For loops If statements Text data processing Word frequency analysis Data cleaning Data analysis exercises Code examples Programming assignments Geospatial analysis Mapping Data visualization Spatial data Geographical information systems Python programming Geographic data science Cartography Data analysis Geodatabases QGIS
Комментарии отсутствуют
Информация о видео
4 июня 2023 г. 19:00:03
00:44:07
Другие видео канала