Allawi ✘ Python
15 subscribers
3 videos
1 link
Download Telegram
Channel created
#what_day_is_today?
#By @XAllawiX
#Channel @AllawiXPython

import datetime
d = datetime.datetime.today().weekday()
if d == 0:
print("It's Monday : الاثنين")
elif d == 1:
print("It's Tuesday : الثلاثاء")
elif d == 2:
print("It's Wednesday : الاربعاء")
elif d == 3:
print("It's Thursday : الخميس")
elif d ==4:
print("It's Friday : الجمعة")
elif d == 5:
print("It's Saturday : السبت")
elif d == 6:
print("It's Sunday : الاحد")
#PasswordGenerator
#Join @AllawiXPython
#By @XAllawiX

from random import randint as rndm

msg = "Password generated length {0}: {1}"
pwd_le = 8
pwd = ""

for i in range(pwd_le):
pwd += chr(rndm(33, 126))
print(msg.format(pwd_le, pwd))
/python3
#TryYourLuckGame
#Join @AllawiXPython
#By @XAllawiX

import random
color_1 = ["🔴","🟢","🔵"]
color_2 = ["🔴","🟢","🔵"]
color_3 = ["🔴","🟢","🔵"]

def game(ball1,ball2,ball3):
print("━━━━━━━━━━━")
print("▏"+ball1+" ▏"+ball2+" ▏"+ball3+" ▏")
print("━━━━━━━━━━━")

index_1 = random.randint(0,2)
index_2 = random.randint(0,2)
index_3 = random.randint(0,2)

a = color_1[index_1]
b = color_2[index_2]
c = color_3[index_3]

if(a == b and b == c):
print("\t\t Ufff you won! \n\t\t u lucky :]")
else:
print("\t\t You lose, \n\t\t lol try again")
print()
game(a,b,c)
/python3
#KnowYourAgeInMonthsDaysMinSec
#Join @AllawiXPython
#By @XAllawiX

age = 16 #YOUR AGE HERE

print(" Your Age :",age)

print (" you are ".title() + str(int(age) *12 ) + (" months old. ".title()))

print(" you are ".title() + str(int(age) *12*31) + (" days old. ".title()))

print(" you are ".title() + str(int(age) *12*31*24) + (" hours old. ".title()))

print(" you are ".title() + str(int(age) *12*31*24*60) + (" minutes old. ".title()))

print(" you are ".title() + str(int(age)*12*31*24*60*60) + (" seconds old. ".title()))
/python3
#KnowYourAgeInAnyYear
#Join @AllawiXPython
#By @XAllawiX

birth_year = 2005 #YourBirthYear
age = 2021 - birth_year
print(f"You are {age} years old :]")

#You Can Change (2021) To Any Year To Know Your Age In That Year Like 2030 :]
/python3
#SimpleDiceGame
#Join @AllawiXPython
#By @XAllawiX

def die(num):
if num == 1:
print("1⃣")
if num == 2:
print("2⃣")
if num == 3:
print("3⃣")
if num == 4:
print("4⃣")
if num == 5:
print("5⃣")
if num == 6:
print("6⃣")

from random import randint as rnd

dce1=rnd(1,6)
die(dce1)
print("You rolled", dce1)

dce2=rnd(1,6)
die(dce2)
print("Bot rolled", dce2)


if dce1 == dce2:
print("♻️Draw♻️")
elif dce1 >dce2:
print("🎉You won🎉")
elif dce1 <dce2:
print("You lose")
/python3
#SimpleFightGame
#Join @AllawiXPython
#By @XAllawiX


import random

p = ["Allawi","Wutz","Huso","STM","OnlyMe ST"]

while len(p)>1:
ded = random.choice(p)
p.remove(ded)
killers = random.choice(p)
print(f"{ded} was killed by {killers} ({ded} is out)")

print(f"\n{p[0]} won!")
I will make simple python battle royale game (text based) if u want your name in the game comment in my python chat only :]

my python chat : @PythonChating
/python3
#BattleRoyale1.0
#Join @AllawiXPython
#By @XAllawiX

# it has some errors don't worry :]

import random

players = ["Allawi", "OnlyMe ST", "HuSo", "STM", "Wutz", "UNICOR", "EVIL HMADA", "V O I D", "Spy", "Paan", "Ashor", "Ghost Rider", "Skull Trooper", "Spark"]
deaths = ["Sniped", "shotgunned", "fish slaped"]
self = ["didn't stick the landing", "took the L", "got lost in the storm", "falls over the map"]
while True:
player = random.choice(players)
death = random.choice(deaths)
selfs = random.choice(self)
player2 = random.choice(players)
chnc = random.randint(1,10)
print(" ")

if len(list(players)) == 1:
break

elif chnc == 10:
print(player,death,player2)
playera = random.choice(players)
print(player,death,playera)
players.remove(player2)
players.remove(playera)

elif chnc > 5:
print(player,death,player2)
print(player2 + " died")
a=player
players.remove(player2)

elif chnc >= 4:
print(player,death,player2)
a=player2
players.remove(player2)

elif chnc <= 3:
print(player,selfs)
a=player
players.remove(player)

print(*players ,"won!")
/python3
#BattleRoyale 2.0
#Join @AllawiXPython
#By @XAllawiX

"""
update 2.0
•now player doesn't kill himself
•added some new deaths msg
•added some new selfs msg
•now a player can double kill
"""
import random

players = ["Allawi", "OnlyMe ST", "HuSo", "STM", "Wutz", "UNICOR", "EVIL HMADA", "V O I D", "Spy", "Paan", "Ashor", "Ghost Rider", "Skull Trooper", "Spark"]
deaths = ["Sniped", "shotgunned", "fish slaped", "slaped"]
self = ["hit the ground too hard", "took the L", "got lost in the storm", "falls over the map", "kicked because hacking", "drowned", "blew up"]
while True:
player = random.choice(players)
death = random.choice(deaths)
selfs = random.choice(self)
player2 = random.choice(players)
playera = random.choice(players)
chnc = random.randint(1,10)
print("≡≡≡≡≡≡≡≡")

if len(list(players)) == 1:
break

elif chnc == 10:
if player == player2 or player == playera or playera == player2 :
continue
else:
print(player,death,player2)
print(player,death,playera)
print(player2 + " and " + playera + " died")
players.remove(player2)
players.remove(playera)

elif chnc > 5:
if player == player2:
continue
else:
print(player2,death,player)
print(player + " died")
players.remove(player)

elif chnc >= 4:
if player == player2:
continue
else:
print(player,death,player2)
print(player2 + " died")
players.remove(player2)

elif chnc <= 3:
print(player,selfs)
players.remove(player)

print(*players ,"won!")
should I add mvp kills to my battle royale text based game? btw ty for 100 subs🌹
Anonymous Poll
84%
yea it will be better :]
16%
nop
/python3
#BattleRoyale 3.0
#Join @AllawiXPython
#MadeBy @XAllawiX

"""
update 3.0
•now tells how much players in game
•added mvp player
•fixed some bugs
"""

import random

players = ["Allawi", "OnlyMe ST", "HuSo", "STM", "Wutz", "UNICOR", "EVIL HMADA", "V O I D", "Spy", "Paan", "Ashor", "Ghost Rider", "Skull Trooper", "Spark", "Commando2", "AmIKilling", "Demon Kong", "Gutsy Studs", "Dark Spirits", "Electric Tank", "AWMLover", "Headshooter", "Agent47", "Margolem", "DEADPOOL", "Faadu", "Tomato", "RyZe ツ", "NINJA", "Shadow ツ"]
Pl = ["Allawi", "OnlyMe ST", "HuSo", "STM", "Wutz", "UNICOR", "EVIL HMADA", "V O I D", "Spy", "Paan", "Ashor", "Ghost Rider", "Skull Trooper", "Spark", "Commando2", "AmIKilling", "Demon Kong", "Gutsy Studs", "Dark Spirits", "Electric Tank", "AWMLover", "Headshooter", "Agent47", "Margolem", "DEADPOOL", "Faadu", "Tomato", "RyZe ツ", "NINJA", "Shadow ツ"]
deaths = ["Sniped", "shotgunned", "fish slaped", "slaped"]
self = ["hit the ground too hard", "took the L", "got lost in the storm", "falls over the map", "kicked because hacking", "drowned", "blew up"]
aw = 0
kills = []
for i in players:
kills.append(0)
print(len(Pl), "Players are in the game\n")
while True:
player = random.choice(players)
death = random.choice(deaths)
selfs = random.choice(self)
player2 = random.choice(players)
playera = random.choice(players)
chnc = random.randint(1,10)
k=Pl.index(player)
print("≡≡≡≡≡≡≡≡")

if len(list(players)) == 1:
break

elif chnc == 10:
if player == player2 or player == playera or playera == player2 :
continue
else:
print(player,death,player2)
print(player,death,playera)
print(player2 + " and " + playera + " died💀")
players.remove(player2)
players.remove(playera)
kills[k] += 2

elif chnc > 5:
if player == player2:
continue
else:
print(player2,death,player)
print(player + " died💀")
players.remove(player)
kills[k] += 1

elif chnc >= 4:
if player == player2:
continue
else:
print(player,death,player2)
print(player2 + " died💀")
players.remove(player2)
kills[k] += 1

elif chnc <= 3:
print(player,selfs)
players.remove(player)

print("🥇", *players ,"won!")
for g in range(len(Pl)):
if kills [g] > aw:
aw = kills[g]
mvp = Pl[g]
print("---------------------------")
print("⭐️", mvp,"was MVP, kills",kills[Pl.index(mvp)])
print("---------------------------")
/python3
#GameNameGenerator
#Join @AllawiXPython
#By @XAllawiX

import random

f=["Campaign","Evil","Machine","Source","Golden","Counter","Ghost","Command","War","Rage","Dark","Crush","Galaxy","First","Big","Alien","Red","Smart","System","Arm","Skulls","Cloud"]

s=["Demon","Killer","Man","Truth","Fear","Kill","Thunder","Dragon","Shadow","Infect","Runner","Blood","Knight","Adventurer","Warrior","Dream","Assault","Cry"]

fg = random.choice(f)
sg = random.choice(s)
fs = fg+" "+sg

print("Game Name :", fs)
/python3
#AskQuestion
#Join @AllawiXPython
#By @XAllawiX

import random

#Type your question👇 in Q =
Q = "am i adopted?"

A = [
"It is certain",
"You'll need more information",
"Ask your mom",
"It is decidedly so",
"Without a doubt",
"Yes, definitely",
"You may rely on it",
"As I see it, yes",
"Most likely",
"My sources say no"]

print(random.choice(A)+"\n\nYour Question : "+ Q)
Forwarded from Pro Gaming Thumbnails
-Hi I’m Allawi-

I’ll make a professional gaming thumbnails for you for 10$

Gaming thumbnails for:
Pubg, Fortnite, COD, Free fire, and More!

IMPORTANT: I’ll make the thumbnail for you first (watermarked!) if you liked it you pay 10$ and take the thumbnail (Without Watermark High Quality)

DM: @XAllawiX