Practity Blog

437 FOLLOWERS

The Practity Blog offers Tips, News, and Guides on Python and Excel-related topics. Discover interesting, well-researched articles for Python learners and Excel students from Practity, an online resource of real-life practice projects of Python for beginners, intermediate and advanced students focused on specific subjects and libraries.

Practity Blog

4d ago

Top Data Visualization Tools for Excel In today’s data-driven world, the humble Excel spreadsheet remains a staple tool for businesses of all sizes. While Excel offers a wealth of functionalities, the true power lies in transforming raw data into visually compelling dashboards and reports. Fortunately, there is a diverse ecosystem of data visualization […]
The post Data Visualization Tools for Excel appeared first on Python and Excel Projects for practice ..read more

Practity Blog

4d ago

Shape Areas Project Python OOP coding project Write a Python class that includes three methods for calculating the areas of three different geometric shapes: circles, rectangles, and cylinders. The formulas for each shape are: – Circle: Area = πr^2, where π is the mathematical constant Math.PI and r is the radius of the circle. – […]
The post Shape Areas Project appeared first on Python and Excel Projects for practice ..read more

Practity Blog

4d ago

Python Pattern programs for Practice Write a Python program to display three different patterns: 1. An equilateral triangle pattern with ‘*’ using 8 rows. 2. An empty square pattern with only the border formed by ‘+’ signs using 8 rows. 3. An equilateral pyramid pattern with even numbers starting from 2 using 10 rows. […]
The post Python Pattern Exercises appeared first on Python and Excel Projects for practice ..read more

Practity Blog

4M ago

Simple Python project for intermediates Nim Game with Python
Nim is a game of logic and strategy. The winner of Nim is the player who removes the last of 12 matchsticks. The goal of this simple Python project for intermediates is to write a program to play a version of the game where the second player (the computer) always wins by following a specific winning strategy.
The game has 3 rules:
Start with 12 matchsticks
Each player can take 1, 2, or 3 matchsticks, in turn the player who takes the last token wins.
The trick to always win is to subtract 4 to the number the first player took ..read more

Practity Blog

4M ago

Biorhythms with Python
Write a Python program that calculates and displays the intellectual, emotional, and physical biorhythm cycles of a user, based on his/her birth date. The program should:
1. Prompt the user to enter his/her birth date (year, month, and day).
2. Calculate the user’s current biorhythm cycles using the following formulas:
– Physical cycle: sin(2π * days_since_birth / 23)
– Emotional cycle: sin(2π * days_since_birth / 28)
– Intellectual cycle: sin(2π * days_since_birth / 33)
3. Display the calculated values for the user’s physical, emotional, and intellectual biorhyth ..read more

Practity Blog

5M ago

How Can I Practice Excel at Home?
In today’s data-driven business landscape, proficiency in Microsoft Excel has become an essential skill. Whether you’re a student, a professional, or an aspiring analyst, honing your Excel expertise can open doors to countless opportunities. Fortunately, the answer is yes, you can practice Excel at home with the right approach, you can practice and enhance your Excel skills from the comfort of your own home.
Create a Structured Learning Plan
Developing a comprehensive learning plan is the first step towards mastering Excel. Begin identifying your curren ..read more

Practity Blog

5M ago

Amicable Pairs with Python Project to Learn Python
Amicable numbers, also known as an amicable pair, are two different numbers such that the sum of the proper divisors of each number is equal to the other number. In other words, if the sum of the proper divisors of one number equals the other number, and vice versa, then the two numbers are considered an amicable pair.
For example, the smallest pair of amicable numbers is (220, 284). The proper divisors of 220 are 1, 2, 4, 5, 10, 11, 20, 22, 44, 55, and 110, and their sum is 284. The proper divisors of 284 are 1, 2, 4, 71, and 142, and their s ..read more

Practity Blog

5M ago

Python Class Challenge
Code a Python class named “submarine” to control the navigation of a submarine.
Create an attribute named “depth” that saves the current meters under water of the submarine. Use a property to set the depth attribute and make it hidden.
Add a method named “rise” to ascend to a passed depth change.
Add an attribute named “rise_count” that saves the number of ascents the submarine has done.
Add a method named “course” that returns the submarine current depth.
Add a method named “dive” that makes the submarine to sink to a passed depth change.
Steps
Define the ..read more

Practity Blog

5M ago

New Alphabet Sort Challenge
Given a new alphabet of 26 letters with no duplicates and arranged in the following order:
ZRSTHIGMAUNOQEDPCKJYFWLVBX
Write a Python program that sorts the words of a given sentence based on this new alphabet order. The program should print the words of the next sentence, separated by spaces, in the new order using the first letter of each word.
“Python uses whitespace indentation, rather than curly brackets or keywords”
Steps
Define the new alphabet: Create a dictionary where each letter in the new alphabet corresponds to its position in the alphabet.
Split ..read more

Practity Blog

5M ago

Blackjack Simulator Python Game project
Blackjack is one of the most popular card games played in Casinos worldwide. The game is also known as 21 because the primary objective is to reach a hand value of 21 or as close to it as possible without exceeding it.
The goal of this Python game project is to code a simplified version of blackjack. You must write a program to check the winner of blackjack.
The input of the program will be:
1) Number and name of players. The program will prompt the user to enter the number and name of the players. For this project assume there are always less than 4.
2 ..read more