gfg placement course
s="ab.e.e3"
w = s.split('.')
// w is ["ab","e","e3"]
gfg placement course
s="ab.e.e3"
w = s.split('.')
// w is ["ab","e","e3"]
gfg placement
sum(a)
a is the list , it adds up all the numbers in the
list a and takes start to be 0, so returning
only the sum of the numbers in the list.
sum(a, start)
this returns the sum of the list + start
// Python code to demonstrate the working of
// sum()
numbers = [1,2,3,4,5,1,4,5]
// start parameter is not provided
Sum = sum(numbers)
print(Sum)
// start = 10
Sum = sum(numbers, 10)
print(Sum)
gfg placement course
>>> [1, 2, 3] * 3
[1, 2, 3, 1, 2, 3, 1, 2, 3]
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