
Programació amb codi: Python
Presentation
•
Computers
•
9th Grade
•
Easy
David Mas
Used 2+ times
FREE Resource
1 Slide • 10 Questions
1
Programació amb codi: Python
2
Multiple Select
Quan programem amb Python amb el mode micro:bit, amb quina indicació comencem sempre el programa?
while True
display.show
from microbit import *
radio.on()
3
Multiple Select
Quan tinc el programa acabat, per passar-me'l a la micro:bit, quina de les següents accions haig de clickar?
Plotter
Check
REPL
Flash
4
Multiple Select
El curs passat, quan programaves amb blocs, per fer un bucle infinit, utilitzaves el "Forever". I ara, en codi, amb python?
sleep
while True
elif
button_a.was_pressed()
5
Multiple Select
Si vull que a la matriu de LEDs de la placa micro:bit em surti una paraula, quina indicació hauré d'escriure en el programa?
display.scroll
display.clear()
display.show
float ('numero')
6
Multiple Select
Quin codi escriurem si ens donen aquest "pseudocodi"? Mostra per pantalla la icona "COR"
display.show(Image.HEART_SMALL)
display.show(Image.HEART)
display.scroll(HEART)
sleep(HEART)
7
Multiple Select
Ara vull que la paraula "hola" em surti per consola (per la pantalla de l'ordinador) en comptes de per la placa micro:bit. Com ho programo?
"hola"
display.scroll("hola")
display.show("hola")
print("hola")
8
Multiple Select
si vull que em "llegeixi" un nombre com a nombre real, quina indicació introdueixo?
float
int
real
num
9
Multiple Select
si vull que em "llegeixi" un nombre com a nombre enter, com ho introdueixo?
enter
float
int
num ent
10
Multiple Select
Un cop he descarregat un programa a la micro:bit i he obert el "REPL" per veure-ho en pantalla, perquè funcioni, què és el primer que haig de fer?
Res, només pitjant REPL ja funcionarà
Fer un Check
Tornar a fer un flash
fer un reset de la placa micro:bit
11
Multiple Select
Quan escric un print per fer una pregunta per consola, per respondre a la línia de sota, què hi haig d'afegir a la programació?
enter
:
\n
low
Programació amb codi: Python
Show answer
Auto Play
Slide 1 / 11
SLIDE
Similar Resources on Wayground
7 questions
Sec. 8.4: Quadratic Modeling Lesson (Alg 1)
Presentation
•
9th Grade
7 questions
CBSE - UNIT 1 - Digital documentation - Grade 10
Presentation
•
10th Grade
9 questions
Variable Naming
Presentation
•
10th Grade
7 questions
Graphs
Presentation
•
9th Grade
12 questions
Density: Area & Volume
Presentation
•
9th Grade
7 questions
Velocity
Presentation
•
8th Grade
10 questions
Distance/Displacement/Speed/Velocity
Presentation
•
9th Grade
11 questions
Properties of Integer Exponents
Presentation
•
8th - 9th Grade
Popular Resources on Wayground
6 questions
Secondary Safety Quiz
Presentation
•
9th - 12th Grade
10 questions
MyPath Diagnostic Overview
Presentation
•
6th - 8th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Adding and Subtracting Decimals
Quiz
•
5th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
21 questions
Lab Safety
Quiz
•
10th Grade
Discover more resources for Computers
20 questions
Early Computing
Quiz
•
7th - 12th Grade
20 questions
Module 1 Topic 1 Vocabulary
Quiz
•
9th - 12th Grade
10 questions
Exploring Computer Hardware and Software Components
Interactive video
•
6th - 10th Grade
14 questions
Introduction to Digital Citizenship
Quiz
•
9th Grade
39 questions
Safety Review
Quiz
•
9th - 12th Grade
20 questions
Digital Citizenship
Quiz
•
8th - 12th Grade
25 questions
OSHA and Lab Safety
Quiz
•
9th Grade
22 questions
Electronic Computing
Quiz
•
8th - 12th Grade