{ "@context": "https://schema.org", "@type": "Organization", "name": "Brainscape", "url": "https://www.brainscape.com/", "logo": "https://www.brainscape.com/pks/images/cms/public-views/shared/Brainscape-logo-c4e172b280b4616f7fda.svg", "sameAs": [ "https://www.facebook.com/Brainscape", "https://x.com/brainscape", "https://www.linkedin.com/company/brainscape", "https://www.instagram.com/brainscape/", "https://www.tiktok.com/@brainscapeu", "https://www.pinterest.com/brainscape/", "https://www.youtube.com/@BrainscapeNY" ], "contactPoint": { "@type": "ContactPoint", "telephone": "(929) 334-4005", "contactType": "customer service", "availableLanguage": ["English"] }, "founder": { "@type": "Person", "name": "Andrew Cohen" }, "description": "Brainscape’s spaced repetition system is proven to DOUBLE learning results! Find, make, and study flashcards online or in our mobile app. Serious learners only.", "address": { "@type": "PostalAddress", "streetAddress": "159 W 25th St, Ste 517", "addressLocality": "New York", "addressRegion": "NY", "postalCode": "10001", "addressCountry": "USA" } }

Python Flashcards

Conocer las bases, métodos y funciones de python (8 cards)

1
Q

Python3 -m venv nombre_carpeta

A

Crea un entorno virtual de python

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Source nombre_carpeta/bin/activate

A

Activa el ambiente virtual

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Que hace de deactivate?

A

Desactiva el ambiente virtual

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Para que sirve type()?

A

Comprueba el tipo de dato de la variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Para que sirve isnumeric()?

Ej:. Variable.isnumeric()

A

Es un método de los strings que comprueba si dentro hay números

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Que hace: import random?

A

Importa el módulo random a python

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Que hace random.randint()

A

Devuelve un número aleatorio

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Que hace random.randint(0,10)

A

Devuelve un número aleatorio entre 0 y 10

How well did you know this?
1
Not at all
2
3
4
5
Perfectly