how to split a string in python with multiple delimiters
>>> a='Beautiful, is; better*thannugly'
>>> import re
>>> re.split('; |, |*|n',a)
['Beautiful', 'is', 'better', 'than', 'ugly']
how to split a string in python with multiple delimiters
>>> a='Beautiful, is; better*thannugly'
>>> import re
>>> re.split('; |, |*|n',a)
['Beautiful', 'is', 'better', 'than', 'ugly']
split a variable into multiple variables in python
variable = "Hello, my name, is, ect"
#The seperate varibles ("a,b,c,d")
a, b, c, d = variable.split(",") # What we are splitting the variable with (",")
print(f"{a} n {b} n{c} n{d}")
# Our output would be:
'''
Hello
my name
is
ect
'''
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us