
мәселе48 sinip
Presentation
•
Computers
•
8th Grade
•
Easy
Ainura Baigara
Used 4+ times
FREE Resource
19 Slides • 2 Questions
1
2
3
Open Ended
Сабақты қандай форматта өткенде тақырыпты толық және жеңіл түсінесіз?
4
7, 17, 29 және 78 сандарынан басқа 1-ден 100-ге дейінгі барлық сандарды шығаратын бағдарлама жазайық.
for i in range(1, 101):
if i == 7 or i == 17 or i == 29 or i == 78:
continue # келесі итерацияға өтіңіз
print(i)
Ескертпелер
Ескерту 1. Break операторы бағдарламадан гөрі жақын циклдің орындалуын тоқтатады, яғни циклден кейін бірден команда орындалады.
5
Пайдаланушы енгізген санның, 7 санының бар-жоғын анықтайтын бағдарламаны жазайық. Бұрын жазылған бағдарламалық кодтың орнына:
num = int(input())
n = num
while n != 0:
last = n % 10
if last == 7:
print ('Сан', num, ' 7 ' санын қамтиды)
break
n //= 10
else:
print ('Сан', num,'7' саны жоқ)
6
Біз 10 санды оқитын және теріс санды тапқанға дейін оларды қосатын for циклін қолданатын бағдарламаны жазамыз. Бұл жағдайда циклды break командасы тоқтатады:
result = 0
for i in range(10):
num = int(input())
if num < 0:
break
result += num
print(result)
Үзіліс циклінің операторы сигнал белгілерімен байланысты ыңғайлы: кейбір шартты тексергеннен кейін циклды жалғастырудың қажеті жоқ.
7
8
9
10
11
12
13
14
15
Келесі мәселені қарастырайық
16
17
Open Ended
Осы тоқсаннан өзіңнен не күтесің?
18
19
20
21
Үй жұмысы
143 бет
9-10-11- сұрақтарға жазбаша жауа
үй жұмысы міндеттті түрде орындалуы шарт
Show answer
Auto Play
Slide 1 / 21
SLIDE
Similar Resources on Wayground
20 questions
INFORMATIKA-BAB TIK
Presentation
•
8th Grade
20 questions
Teknologi Informasi Komunikasi
Presentation
•
8th Grade
12 questions
Складання програм на введення та виведення даних. Практична робо
Presentation
•
8th Grade
17 questions
Unit 5 - John Adams's Presidency
Presentation
•
7th Grade
19 questions
บทเรียนภาษาไพทอน ม.1
Presentation
•
7th - 8th Grade
16 questions
TLE Elective-Grade7 Beltran
Presentation
•
7th Grade
17 questions
QUIZ TIK
Presentation
•
8th Grade
16 questions
Higher SDD - Data types & structures
Presentation
•
8th Grade
Popular Resources on Wayground
20 questions
"What is the question asking??" Grades 3-5
Quiz
•
1st - 5th Grade
20 questions
“What is the question asking??” Grades 6-8
Quiz
•
6th - 8th Grade
10 questions
Fire Safety Quiz
Quiz
•
12th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
34 questions
STAAR Review 6th - 8th grade Reading Part 1
Quiz
•
6th - 8th Grade
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
47 questions
8th Grade Reading STAAR Ultimate Review!
Quiz
•
8th Grade
Discover more resources for Computers
20 questions
“What is the question asking??” Grades 6-8
Quiz
•
6th - 8th Grade
34 questions
STAAR Review 6th - 8th grade Reading Part 1
Quiz
•
6th - 8th Grade
47 questions
8th Grade Reading STAAR Ultimate Review!
Quiz
•
8th Grade
44 questions
8th Grade Social Studies - Staar Review 2021
Quiz
•
8th Grade
20 questions
8th Grade Science STAAR Review
Quiz
•
8th Grade
8 questions
Amoeba Sister Asexual vs Sexual Reproduction
Interactive video
•
8th Grade
15 questions
Pythagorean Theorem Word Problems Quizizz
Quiz
•
8th Grade
29 questions
8th Grade Social Studies STAAR Review Part 2
Quiz
•
8th Grade