Posts

Showing posts from June, 2020

Datatype Explained & Used [set()] - Pt. 1

Image
https://youtu.be/iF4o8vwkTn0 In this video: - set initialization - help() and dir() of set - set() and dict() - set() and list() Thanks for Viewing. Please do Subscribe, React, Comment and Share! www.hamplustech.com

Python Task - Answer to Week2 No1

Image
Solution to our weekly python task (https://www.hamplustech.com/2020/06/python-programming-task-week-2.html) was given in this video. Thanks for watching this tutorial. * Please SUBSCRIBE to this channel and our blog * Please REACT, COMMENT and SHARE our contents www.hamplustech.com

Data wrangling 2 - dictionary manipulation

Image
Data Wrangling 2 - Changing the key of a python dict - Changing the value of a python dict Thanks for watching this tutorial. * Please SUBSCRIBE to this channel and our blog * Please REACT, COMMENT and SHARE our contents www.hamplustech.com

Data wrangling 1 - map() and itertools

Image
Iterables and their manipulations - zip() - itertools https://youtu.be/l-d4b0r6R0o Thanks for watching this tutorial. * Please SUBSCRIBE to this channel and our blog * Please REACT, COMMENT and SHARE our contents www.hamplustech.com

Sorting a Python Dictionary

Image
Sorting a Python Dictionary https://youtu.be/29ZfEjsjTTs - sorted() - dict.items() - lambda www.hamplustech.com

Datatype Explained & Used [dict] - Pt. 2

Image
Datatypes Explained and Used [dict] - Pt. 2 https://youtu.be/VkWG7XVMISY - dunder method - magic function - python modules Please SUBSCRIBE to my channel and blog. Thanks! www.hamplustech.com Thanks!

Datatype Explained & Used [dict] - Pt. 1

Image
https://youtu.be/bN17aKhty5c - introduction to dictionary - concept of dictionary - keys - values - items Please keep an eye on our channel and blog to be the first to get our latest videos and post. Just SUBSCRIBE now! We are available on all social media using * @HamplusHub * @HamplusTech Thanks! www.hamplustech.com

Intro to Week 4 - Python Task and Dict Datatype

Image
https://youtu.be/IXJRnQNmgYg *This Week's Videos will be on* - dictionary datatype (dict() or {key:value}) - solution to last week's task on our blog - zip() - itertools Please keep an eye on our channel and blog to be the first to get our latest videos and post. We are available on all social media using * @HamplusHub * @HamplusTech Thanks! www.hamplustech.com

Python Programming Task Week 2

Image
Hello Folks! We have been on python lessons (datatype). We have discussed the following datatypes so far; integer (int) - see video , string (str) - see video  and list which is also called array (one dimensional) - see video . Below are tasks or exercises for us this week based on list: Data = [2,4,2,1,4,5,6,1,11]. Multiply the elements in the list using for loop list comprehension map function Data = [5,4,2,1,2,6,8,9,10,11,13,17]. Sort the list in a way that all the odd numbers comes before the even numbers. Data = [1,2,3,[4,6,9],2,[1,6]] and Data2 = [1,2,3,4,5,6,7,8,9]. Find the progressive sum of the lists. Please kindly solve and drop your solutions as a comment on this blog or on our YouTube channel. Remember, there is always a prize attached to our task. To Win: Drop your answer as comment. Like this post and any other four on the blog. Like three videos on our  YouTube  channel. Subscribe to our blog and also our channel. Share our blog and channel to three socia...

lambda Explained & Used - map(), filter(), sort()

Image
lambda function - Explained and Used - map() - filter() - sort() https://youtu.be/6sS9C5by12g www.hamplustech.com THANKS FOR WATCHING!

Datatype Explained & Used [list] - Pt. 4

Image
Datatype Explained and Used [list] - Pt. 4 - insert - some magic (dunder) methods https://youtu.be/bigecFPjXEM www.hamplustech.com +2347063047037 THANKS FOR WATCHING! Please SUBSCRIBE to my channel.

Datatype Explained & Used [list] - Pt 3

Image
list methods - reverse, sort(using the key parameter) deleting from list using del https://youtu.be/iOOb_l0Q-zQ Thanks for WATCHING. Please SUBSCRIBE, COMMENT AND REACT. Thanks www.hamplustech.com

Datatype Explained & Used [list] - Pt 2

Image
Datatype Explained and Used [list] - Pt 2. - append - clear - copy - count - extend - index - insert - pop - remove - reverse - sort https://youtu.be/d9MPDNce2yk Please SUBSCRIBE to our channel and blog. Also, REACT, COMMENT and SHARE our VIDEOS and POSTS. Thanks! www.hamplustech.com

Datatype Explained & Used [list] - Pt. 1

Image
Datatype Explained and Used [list] - Pt 1. - what is a list - string list - numeric list - functions in list - methods in list https://youtu.be/zvPWzvtwXFY Please SUBSCRIBE to our channel and blog. Also, REACT, COMMENT and SHARE our VIDEOS and POSTS. Thanks!

Datatype Explained & Used - Reversing String

Image
Reverse any given string example when input is JOY output becomes YOJ. Indexing and slicing with for ... loop and list comprehension. STRICTLY PYTHON!!! https://youtu.be/gC8iew64_90 www.hamplustech.com

Datatype Explained & Used [str] - Pt 2

Image
Video lecture on String Operators, len, capitalize, upper, lower, contains, magic functions, and others https://youtu.be/tzuCn5nhZZA www.hamplustech.com

Datatype Explained & Used [str] - Pt 1

Image
str (String) datatype was explained and used. The functions in this class (data type) were also explained. https://youtu.be/xp-YpXzBJ_U www.hamplustech.com

Datatype Explained & Used [int, complex, fraction] Pt 2

Image
https://youtu.be/uMxWL2W2ao8 Integer, Complex Number and Fraction were used in the continuation of this video. www.hamplustech.com

Datatype Explained & Used [int] - Pt 1

Image
Integer (int) was explained and used in ways to boost understanding of programmers especially the young ones. https://youtu.be/43WCbyZjHJ8 The help (help) and directory (dir) keywords were used and explained. www.hamplustech.com Thanks.

Python Programming - Packing & Unpacking 1

Image
Python Programming - Packing & Unpacking 1 https://youtu.be/O4bqGOu74ig Simple demonstration of packing and unpacking, using list, set, dictionary and tuple. hamplustech.com hamplustech.wordpress.com

Python Programming - Packing & Unpacking 2

Image
Packing and Unpacking in Python programming. Uses list, dictionary and tuple for demonstration. https://youtu.be/K58L-KAr_mg www.hamplustech.com hamplustech.wordpress.com

Week 1 Task 1 Number 1

Image
The details of the task is seen in this post Data wrangling with dictionary and list. print("Answers to online task by Hampo, JohnPaul A.C.") print() print("Week 1 Answers - Task 2") print("Answer to last week's task No.1\ Hello Dear! Here is a little weekend task for us in python.\ Consider the data structure below:\ menu = {'meal_1': 'Spaghetti',\ 'meal_2': 'Fries',\ 'meal_3': 'Cheeseburger',\ 'meal_4': 'Lasagna',\ 'meal_5': 'Soup',\ 'meal_6': ['Pancakes', 'Ice-cream', 'Tiramisu']}\ 1] Create a new dictionary that contains the first five meals as keys and assign the following\ five values as prices (in dollars): 10, 5, 8, 12, 5. Start by Price_list = {}.\ 2] Create a JSON in which the values of the keys of menu dictionary have a dictionary\ showing the recipe for the values.)") Please what the video or click here to ...

Python Task Week 1 - Answers for Task 2

Image
Good day. Here is the task which the answer is given here. print("Answers to online task by Hampo, JohnPaul A.C.") print() print("Week 1 Answers - Task 2") print("Answer to last week's task No.1\       Hello Dear! Here is a little weekend task for us in python.\ Consider the data structure below:\ menu = {'meal_1': 'Spaghetti',\  'meal_2': 'Fries',\  'meal_3': 'Cheeseburger',\  'meal_4': 'Lasagna',\  'meal_5': 'Soup',\  'meal_6': ['Pancakes', 'Ice-cream', 'Tiramisu']}\ 1] Create a new dictionary that contains the first five meals as keys and assign the following\       five values as prices (in dollars): 10, 5, 8, 12, 5. Start by Price_list = {}.\ 2] Create a JSON in which the values of the keys of menu dictionary have a dictionary\       showing the recipe for the values.)") print() print("Solution") print("Task Number 1"...

Python Programming - Answer to last week's task No 1 and list comprehension

Image

Python Programming Task 1 - Answer

Image
Hello! Below is the answers to last week's task. To see the task, please visit  Here . The code is seen below: print("Answers to online task by Hampo, JohnPaul A.C.") print() print("Week 1 Answers") print("Answer to last week's task No.1\       Hello Dear! Here is a little task for us in python.\ \ 1] Write a program to find the sum of the data structure below\ [[1,2,3],[4,5,6,7],[8,9]]\ \ 2] Write a program to convert the tuple to a dictionary where\ name is the key and age is the value. Example: x = ('John', 23, 'm'), ('Peter', 43, 'm')\ then the output will be y = {'John': 23, 'Peter': 43}.") print() print("Solution") print("Task Number 1") a = [[1,2,3],[4,5,6,7],[8,9]] print("Using a for loop") b = [] for i in range(len(a)):     for j in range(len(a[i])):         b.append(a[i][j]) print("The sum of the list of lists = ", sum(b)) print() print("Alternati...

Intro to Python - range and using max, sum, min, count, len in range

Image
learn & revise on the use of range, sum, max, & others in python Please watch, comment, like and share this video. Also, kindly subscribe to the channel. Thanks!

Into. to Python - set, tuple, iterable

Image
Subject covered in this video: Set and Tuple data types. Difference between set and dictionary, set and list What are Iterables Tuple from dictionary Thanks for watching! Please share, like and comment. Also SUBSCRIBE to this channel and this blog. Thanks.

Intro. to Python - len(), max(), min(), sum() and set

Image
Learn how to use some basic functions in a basic way like (len(), max(), min() and sum()). Also learn a new data type called set.

Introduction to Python Programming

Image

Python Task (Happy June)

Image
Hello Love! Happy Sunday. Here is a task for this week to lunch into June. Consider the data structures below: prices = {     "box_of_spaghetti" : 4,     "lasagna"  : 5,     "hamburger" : 2    } quantity = {     "box_of_spaghetti" : 6,     "lasagna"  : 10,     "hamburger" : 0     } 1] Calculate how much was spent on products with a price of 5 naira or more. 2] Calculate how much was spent on products that cost less than 5 naira? Answer Kindly write your codes in the comment section. To Win After commenting your answer in the comment, then do the following: 1] Subscribe to this blog (hamplustech.blogspot.com) 2] Share the blog to at least three social media platform 3] Like the post. 4] For future win, after winning kindly come back and comment your experience. Then active on the blog. I Love you but I love Python more!!! Lolzzz Happy June in Advance! @HamplusHub...