from re import sub
Climb up the chart of development, from web, to software and games. Build your foundations and get certified. Let me help you get your first tech job.
10/1/22
Simple calculator using python and tkinter
9/8/22
Letter Counter
Given a string as input, you need to output how many times each letter appears in the string.
You decide to store the data in a dictionary, with the letters as the keys, and the corresponding counts as the values.
Create a program to take a string as input and output a dictionary, which represents the letter count.
Sample Input
hello
Sample Output
{'h': 1, 'e': 1, 'l': 2, 'o': 1}
Fruit Bowl
You have a bowl on your counter with an even number of pieces of fruit in it. Half of them are bananas, and the other half are apples. You need 3 apples to make a pie.
Task
Your task is to evaluate the total number of pies that you can make with the apples that are in your bowl given to total amount of fruit in the bowl.
Input Format
An integer that represents the total amount of fruit in the bowl.
Output Format
An integer representing the total number of whole apple pies that you can make.
Sample Input
26
Sample Output
4
9/7/22
From feet to inches
You need to make a function that converts a foot value to inches.
1 foot has 12 inches.
Define a convert() function, that takes the foot value as argument and outputs the inches value.
Shouting text
Your friend is sending you a text message, however his caps lock is broken and the whole message is in uppercase.
Noone likes being shouted at, plus uppercase text is hard to read, so you decide to write a program to convert the text to lowercase and output it.
Take a string as input and output it in lowercase.
Analyze to realize
You’re analyzing a data set and need to remove the outliers (the smallest and largest values.
The data is stored in a list).
Complete the code to remove the smallest and largest elements from the list and output the sum of the remaining numbers.
9/5/22
Name please
You need to take the first and last name of a person as input and output the initials (first letters of the first and last name).
Sample Input
James
Smith
Sample Output
J.S.
6/30/22
Python PIP
PIP is a package management system that is used to install and manage Python-based software packages.
Blog Archive
- December 2022 (1)
- November 2022 (7)
- October 2022 (3)
- September 2022 (37)
- June 2022 (20)