- Joined
- Jul 4, 2023
- Messages
- 448
- Reaction score
- 54
At the beginning of ...
[ on-line ]
[ on-line ]
tribute to menator01 idea
[ on-line ]
please, share what do you know ...
[ on-line ]
Python:
features = 'PyTHoN'
print(f'{features:*<40}')
print(f'{features:*>40}')
print(f'{features:*^40}')
for i in range(len(features)+1,41):
print(f'{features:*>{i}}')
[ on-line ]
Python:
tuple_ = (1,2,3)
print(type(tuple_)) # <class 'tuple'>
tuple_ = 1,2,3
print(type(tuple_)) # <class 'tuple'>
tuple_ = 1,
print(type(tuple_)) # <class 'tuple'>
tuple_ = (1,)
print(type(tuple_)) # <class 'tuple'>
tuple_ = (1)
print(type(tuple_)) # <class '?'>
tribute to menator01 idea
[ on-line ]
Python:
from time import sleep
string = 'This is a string'
def stars(arg):
return [print('*', end='', flush=True) or sleep(.15) for _ in range(len(arg))]
[(lambda s: (stars(s), print(f'\n{s}'), stars(s)))(string)]
please, share what do you know ...