Message from Python discussions
November 2018
— Can u give me the code?
I want to see the logic
»>import string
letters = string.ascii_lowercase + " "
slice1 = letters[0::3]
slice2 = letters[1::3]
slice3 = letters[2::3]
with open("letters.txt", "w") as file:
for s1, s2, s3 in zip(slice1, slice2, slice3):
file.write(s1 + s2 + s3 + "\n")
— »import string
letters = string.ascii_lowercase + " "
slice1 = letters[0::3]
slice2 = letters[1::3]
slice3 = letters[2::3]
with open("letters.txt", "w") as file:
for s1, s2, s3 in zip(slice1, slice2, slice3):
file.write(s1 + s2 + s3 + "\n")
—
bot = Bot()
bot.do_magic()
Piece of cake
— Why u just give him what he wants
— Stick your python in the charging port
— Https://github.com/thedevs-network/the-guard-bot
— This python hackers ...
— Why
— You can create a PHP script with your python code inside a string and then shell_exec($python_code)
<?php
$python_code = "print('Hello World")";
shell_exec("python3 " . $python_code);
?>
— Can anyone tell me instruction for minimum element in numpy?
— For example compile to byte code or via python optmize