What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-23 08:35:07
complete python developer in 2020 zero to mastery
# Note: No semicolons needed. Comments: # # Tips: \n in string adds new line. \t adds new tab. len() measures length of item. int(), str(), float(), bool, etc converts items # Output: print(value) print("Hi!") # Variables my_variable = "Hi!... Add solution -
Python 2021-09-16 17:14:01
python vernam cipher
vernam_dict = dict((i, chr(i + 96)) for i in range(1, 27)) # Vernam by replacing char of plain by char(ord(sum of plain and key)) def vernam_encrypt(plain, key): plain = plain.lower() ckey = ''.join([(key[i % len(key)]) for i in range(len(list(pla... Add solution -
Python 2021-09-15 17:27:01
pandas mutate new column
#Using .assign you can make multiple #operations that depend on the #previous ones without the need #of creating intermediate variables import pandas as pd df = pd.DataFrame({ 'name': ['alice','bob','charlie','daniel'], 'age': [25,66,56,78] }) d... Add solution -
Assembly 2021-09-15 03:51:01
discord bot remove message
import discord.ext bot = commands.Bot(";") @bot.event async def on_message(message): if message.content.upper().startswith(";SAY"): args = message.content.split(" ") await bot.send_message(message.chann... Add solution -
Python 2021-09-12 00:03:02
Python - Modify Strings
a = "Hello, World!" print(a.upper()) Add solution
Best helpers
Ranking is empty