Answers for "gfg placement"

0

gfg placement course

s="ab.e.e3"
  w = s.split('.')
  // w is ["ab","e","e3"]
Posted by: Guest on March-09-2022
0

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)
Posted by: Guest on March-10-2022
0

gfg placement course

>>> [1, 2, 3] * 3
[1, 2, 3, 1, 2, 3, 1, 2, 3]
Posted by: Guest on March-10-2022

Python Answers by Framework

Browse Popular Code Answers by Language