Micelaneos Flashcards

1
Q

Como se continúa en otra línea cuando el texto es muy largo?

A

\

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

Floor division

A

//

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

Reminder

A

%

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

7 al cuadrado

A

7**2

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

continue?

A

Skip the rest of the current iteration of the loop and continue with the next iteration of the loop (if there is a next iteration)

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

break

A

Skip the rest of the current iteration of the loop and break out of the loop altogether, skipping any later iteration, too

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

pass

A

Designate an ‘empty’ body for a control structure

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

Insert a tab into a string

A

“\t”

“1\t2” “1 2”

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

print a new line without printing anything else

A

print()

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

end = “ “

A

Crea un espacio y no pasa a la siguiente linea

print(mult, end = “ “)

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

end””

A

Include the text “” inside the print statement’s parentheses. For example, print(“Hello”, end = “”) will print the word “Hello” without starting a new line afterwards. So calling it twice would print “HelloHello” on one line instead of two lines.

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