iterables and iterators | HackerRank | Python

Publicado el: 18 abril 2020
en el canal de: Coding Cart
3,604
56

This video is about combinations from itertools in Python.

Problem: https://www.hackerrank.com/challenges...

Sample Code:
from itertools import combinations
n=int(input())
l=list(input().split())
k=int(input())
c=list(combinations(l,k))
print(c)
r=[i for i in c if 'a' in i]
print('%.3f'%(len(r)/len(c)))

For 1 : 1 Tutoring
WhatsApp contact : 7278222619
mail: jaiswalsatya93@gmail.com

You can support via UPI : sattujaiswal@okhdfcbank

Follow us on:
Whatsapp:
https://chat.whatsapp.com/LNwHGukUizj...

Facebook:
  / coderscart  

Linkedin:
  / satyendra-jaiswal-903588a2  

Instagram:
  / codingcart  

#HackerRank #Python #programming


En esta página del sitio puede ver el video en línea iterables and iterators | HackerRank | Python de Duración hora minuto segunda en buena calidad , que subió el usuario Coding Cart 18 abril 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 3,604 veces y le gustó 56 a los espectadores. Disfruta viendo!