Learn Python

Learn Python From Zero to Hero, Learn Python in a new way and boost your career.

23/10/2025

Learn Python from Scratch — Build a Real Project in 1 Day 🚀

Join now

Trick question !
13/12/2022

Trick question !

Entry level Python Interview question
12/12/2022

Entry level Python Interview question

Entry-Level Python Interview question on Memory Management
08/12/2022

Entry-Level Python Interview question on Memory Management

Python SLicing Question.
07/12/2022

Python SLicing Question.

Short Hand if else statement in Python
03/12/2022

Short Hand if else statement in Python

Is your birth date magical? Simple python program to see how magical you are!Paste this code in your IDE, or online Pyth...
21/11/2022

Is your birth date magical? Simple python program to see how magical you are!
Paste this code in your IDE, or online Python Interpreter and see the magic:

-----------------------------------------------------------------------

import random
magic_number = random.randint(1, 31)
my_birthdate = int(input('Enter your birhday date: '))
if magic_number == my_birthdate:
print('You are magical')
else:
close = abs(magic_number - my_birthdate)
if close > 5:
print('You are ', close, ' numbers away to magic')
else:
print('You are ', close, ' numbers close to magic')
print('Magic number: ', magic_number)

Important Python Datatypes
20/11/2022

Important Python Datatypes

Address

Mumbai

Alerts

Be the first to know and let us send you an email when Learn Python posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Share