import string
s1 = string.ascii_letters
s2 = string.digits
s3 = string.punctuation
while True:
s = input('password >>> ')
if len(s) <=5:
print("Short password")
for i in range(len(s)):
p1 = s3.find(s[i]) > 0
p2 = s[i].isdigit()
p3 = s[i].isupper()
p4 = s[i].islower()
p5 = s[i].isnumeric()
p6 = s[i].isalpha()
if p1 and p2 in [i]:
print("good")
import string
s1 = set(string.ascii_letters)
s2 = set(string.digits)
s3 = set(string.punctuation)
while True:
s = input('password >>> ')
if len(s) <= 5:
print("Short password")
elif not set(s).intersection(s3):
print('Not punctuation in password')
elif not set(s).intersection({'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'}):
print('Not numbers in password')
else:
print('Good password')
elif not set(s).intersection(set()):
print('Нет спецсимволов')
s = 'In a distant, but not so unrealistic, future where mankind has abandoned earth because it hasbecome covered with trash from products sold by the powerful multi-national Buy N Large corporation WALLE, a garbage collecting robot has been left to clean up the mess. Mesmerized with trinkets of Earth s history and show tunes, WALLE is alone on Earth except for a sprightly pet cockroach. One day, EVE, a sleek (and dangerous) reconnaissance robot, is sent to Earth to find proof that life is once again sustainable'
print = (len(s))
print = (s.lower())
print = (s.replace('WALLE', 'WALL-E'))
print = (s.lower().count('earth'))
import random
stats = []
attributes = 5
for i in range(attributes):
r = random.randint(60, 80)
stats.append(r)
Fireball = [12, 15, 28, 10, 5]
while True:
print('Stats up: ', end='')
for i in range(attributes):
print(stats[i], end=' ')
print('\n\t[1] - Strength\
\n\t[2] - Dexterity\
\n\t[3] - Intelligence\
\n\t[4] - Wisdom\
\n\t[5] - Charisma')
select = int(input('Select: '))
select -= 1
# check
stats[select] = stats[select] + random.randint(5, 15)
for i in range(len(stats)):
if i == select:
continue
stats[i] = stats[i] - random.randint(5, 15)
print('Stats up: ', end='')
for i in range(attributes):
print(stats[i], end=' ')
print('\n\t[1] - Fireball') #
select = int(input('Select shoot: '))
if select == 1:
for i in range(attributes):
stats[i] -= Fireball[i]
#elif
#else
# check may be exit
from random import randint
attributes = 5
stats = [randint(60, 80) for _ in range(attributes)]
Fireball = [12, 15, 28, 10, 5]
while True:
print('Stats up: ', *stats)
print('''
[1] - Strength
[2] - Dexterity
[3] - Intelligence
[4] - Wisdom
[5] - Charisma
''')
select = int(input('Select: ')) - 1
# check
for i in range(attributes):
stats[i] += randint(5, 15) if i == select else -randint(5, 15)
print('Stats up: ', *stats)
print('\n\t[1] - Fireball')
select = int(input('Select shoot: '))
if select == 1:
for i in range(attributes):
stats[i] -= Fireball[i]
#elif
#else
# check may be exit
import random
stats = []
attributes = 5
for i in range(attributes):
r = random.randint(60, 80)
stats.append(r)
Fireball = [12, 15, 28, 10, 5]
while True:
print('Stats up: ', end='')
for i in range(attributes):
print(stats[i], end=' ')
print('\n\t[1] - Strength\
\n\t[2] - Dexterity\
\n\t[3] - Intelligence\
\n\t[4] - Wisdom\
\n\t[5] - Charisma')
select = int(input('Select: '))
select -= 1
#print(select)
if select<1 or select>5:
print("Try again")
break
stats[select] = stats[select] + random.randint(5, 15)
for i in range(len(stats)):
if i == select:
continue
stats[i] = stats[i] - random.randint(5, 15)
print('Stats up: ', end='')
for i in range(attributes):
print(stats[i], end=' ')
print('\n\t[1] - Fireball') #
select = int(input('Select shoot: '))
if select == 1:
for i in range(attributes):
stats[i] -= Fireball[i]
#elif
#else
# check may be exit
import random
stats = []
attributes = 5
for i in range(attributes):
r = random.randint(60, 80)
stats.append(r)
Fireball = [12, 15, 28, 10, 5]
Lightning = [7, 13, 15, 30, 10]
Silence = [23, 10, 12, 7, 18]
FireWard = [20, 23, 14, 6, 17]
while True:
print('Stats up: ', end='')
for i in range(attributes):
print(stats[i], end=' ')
print('\n\t[1] - Strength\
\n\t[2] - Dexterity\
\n\t[3] - Intelligence\
\n\t[4] - Wisdom\
\n\t[5] - Charisma')
select = int(input('Select: '))
select -= 1
#print(select)
if select>1 or select<5:
print("Try again")
break
stats[select] = stats[select] + random.randint(5, 15)
for i in range(len(stats)):
if i == select:
continue
stats[i] = stats[i] - random.randint(5, 15)
print('Stats up: ', end='')
for i in range(attributes):
print(stats[i], end=' ')
print('\n\t[1] - Fireball\
\n\t[1] - Lighting\
\n\t[1] - Silence\
\n\t[1] - Fire Ward') #
select = int(input('Select shoot: '))
if select == 1:
for i in range(attributes):
stats[i] -= Fireball[i]
elif select == 2:
for i in range(attributes):
stats[i] -= Lightning[i]
elif select == 3:
for i in range(attributes):
stats[i] -= Silence[i]
elif select == 2:
for i in range(attributes):
stats[i] -= FireWard[i]
#else
# check may be exit