Example:
>>> a = "this is a string"
>>> a = a.split(" ") # a is converted to a list of strings.
>>> print a
['this', 'is', 'a', 'string']
Joining a string is simple:>>> a = "-".join(a)
>>> print a
this-is-a-string
>>> a = "this is a string"
>>> a = a.split(" ") # a is converted to a list of strings.
>>> print a
['this', 'is', 'a', 'string']
Joining a string is simple:>>> a = "-".join(a)
>>> print a
this-is-a-string
Www.HackerRank.com → wWW.hACKERrANK.COM
Pythonist 2 → pYTHONIST 2
>>> any([1>0,1==0,1<0])
True
>>> any([1<0,2<1,3<2])
False
>>> eval("9 + 5")
14
>>> x = 2
>>> eval("x + 3")
5
In this post, we will look at how we can deploy our Django app using the Microsoft Azure app service - a free plan. You need an Azure accoun...