-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path5534.rss
352 lines (349 loc) · 24.5 KB
/
5534.rss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>פורלולה 1 - מחברת 1</title>
<link>https://forums.pythonic.guru/t/1-1/5534</link>
<description>אהלן,
בשאלת התרגול של פורלולה 1, הצלחתי לייצר פונקציה שתחזיר ערך מתאים עבור מקרי הדוגמא.
אבל עבור מקרה הקצה [6 ,6 ,6 ,6 ,6 ,6] הפונקציה דורשת התייחסות שונה.
ועבור [6 ,5 ,6 ,6 ,6 ,6] יחס שונה מהמקרה הקודם.
[6 ,6 ,3 ,3 ,1 ,1] וכן הלאה
כלומר לא הצלחתי לייצר פונקציה שעונה על כל המקרים עם הרעיונות שעלו לי.
האם אני צריך להתייחס למקרים האלה בשלב הזה, ויש לנו מספיק מידע על לולאת for בשביל לפתור איתה את זה?
אני רואה איך אני מיישם עם while את כל המצבים.
הבעיה שאני רואה היא פניה למיקום האיבר ברשימה, פתרון נוסף הוא לצמצם את הרשימות לאחר כל השוואה אבל קיבלתי את הרושם שזה לא מנומס.
הצעות, רעיונות?</description>
<language>he</language>
<lastBuildDate>Thu, 30 Apr 2020 11:44:20 +0000</lastBuildDate>
<category>שבוע 4</category>
<atom:link href="https://forums.pythonic.guru/t/1-1/5534.rss" rel="self" type="application/rss+xml" />
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[chen1]]></dc:creator>
<description><![CDATA[
<p>תסתכלי למעלה בשרשור, שאלו את זה כבר וים אמר שאין בעיה <a class="mention" href="https://forums.pythonic.guru/u/gonny">@gonny</a></p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/23">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/23</link>
<pubDate>Thu, 30 Apr 2020 10:33:49 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-23</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[gonny]]></dc:creator>
<description><![CDATA[
<aside class="quote no-group" data-username="Yam" data-post="6" data-topic="5534">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="20" height="20" src="https://forums.pythonic.guru/user_avatar/forums.pythonic.guru/yam/40/6_2.png" class="avatar"> Yam:</div>
<blockquote>
<p>כל מספר אמור להופיע פעם אחת</p>
</blockquote>
</aside>
<p>ראיתי את זה עכשיו וכבר כתבתי פונקציה שעברה בהצלחה את כל הדוגמאות שנתת במחברת, כולל [1, 2, 4, 4, 5, 6]. לשנות את הקוד? מעדיף לשאול כדי להיות בטוח.</p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/22">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/22</link>
<pubDate>Thu, 30 Apr 2020 10:18:01 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-22</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[hadaskam]]></dc:creator>
<description><![CDATA[
<p>האם אפשר להניח ששתי הרשימות באותו אורך?</p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/21">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/21</link>
<pubDate>Thu, 30 Apr 2020 09:40:26 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-21</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[orpazf]]></dc:creator>
<description><![CDATA[
<p>אני אנסה שוב <img src="https://forums.pythonic.guru/images/emoji/twitter/slight_smile.png?v=9" title=":slight_smile:" class="emoji" alt=":slight_smile:"><br>
הפונקציה מקבלת את הסדר הנכון, שאפשר למיטב הבנתי להניח שהוא תקין - כלומר כל מספר מופיע בו בדיוק פעם אחת, ובנוסף היא מקבלת את ההימור, שיכול להיות גם לא תקין - כלומר ייתכן למשל שיש לך מספר לא נכון שבכלל אינו מופיע בהימור. כלומר זה חלק מהבדיקות שאת צריכה לעשות. אכן אם ההימור זהה לסדר הנכון רק ש-1 הוחלף ב-8 זה עדיין תקין כי יש טעות יחידה.<br>
כי מי שיקרא לפונקציה הזו יקרא לה כחלק מקוד - אולי זו תהיה פונקציה שתהיה אחראית רק על קבלת קלט מהמשתמש ואולי משהו אחר. הפונקציה עצמה צריכה רק לקבל את 2 הארגומנטים ולהחזיר תשובה, היא לא מתעסקת במאיפה הם מגיעים <img src="https://forums.pythonic.guru/images/emoji/twitter/slight_smile.png?v=9" title=":slight_smile:" class="emoji" alt=":slight_smile:"></p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/20">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/20</link>
<pubDate>Thu, 30 Apr 2020 09:23:44 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-20</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[chen1]]></dc:creator>
<description><![CDATA[
<p>בלבלת אותי עוד יותר <img src="https://forums.pythonic.guru/images/emoji/twitter/upside_down_face.png?v=9" title=":upside_down_face:" class="emoji" alt=":upside_down_face:"><br>
אם צריך לקחת בחשבון שאולי יהיה 8 אז למה צריך לוודא שהקלט תקין? זה פשוט ייחשב כטעות, לא?<br>
ולמה אין צורך באינפוט, אם אני לא נותנת דוגמאות ספציפיות?</p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/19">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/19</link>
<pubDate>Thu, 30 Apr 2020 09:13:36 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-19</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[orpazf]]></dc:creator>
<description><![CDATA[
<p>הבנתי, לא שמתי לב לזה <img src="https://forums.pythonic.guru/images/emoji/twitter/see_no_evil.png?v=9" title=":see_no_evil:" class="emoji" alt=":see_no_evil:">. אז אכן צריך לוודא גם שהקלט תקין - לפחות במגבלות מסוימות.<br>
הפונקציה מקבלת קלט = שולחים אליה ארגומנט, אין צורך באינפוט.</p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/18">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/18</link>
<pubDate>Thu, 30 Apr 2020 09:10:27 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-18</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[chen1]]></dc:creator>
<description><![CDATA[
<ol>
<li>
<a class="mention" href="https://forums.pythonic.guru/u/orpazf">@orpazf</a> שאלתי את זה בגלל זה:</li>
</ol>
<aside class="quote no-group" data-username="Yam" data-post="13" data-topic="5534">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="20" height="20" src="https://forums.pythonic.guru/user_avatar/forums.pythonic.guru/yam/40/6_2.png" class="avatar"> Yam:</div>
<blockquote>
<p>הייתי אולי דואג בכ"ז להתחשב במקרה של טעות אחת למקרה שמישהו מזין 8</p>
</blockquote>
</aside>
<ol start="2">
<li>
</li>
</ol>
<p>אז אם אני צריכה לתת למשתמש להזין, בקוד פשוט לעשות input אחד של הימור או לעשות את זה בלופ או פונקציה כאילו איכשהו לתת לכמה שרוצים להמר?</p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/17">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/17</link>
<pubDate>Thu, 30 Apr 2020 09:08:19 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-17</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[orpazf]]></dc:creator>
<description><![CDATA[
<p>אם אנחנו ממשיכים עם הנחת קלט תקין, אני חושבת שניתן להניח שמהמר יהמר רק על מספרים שקיימים ועל כל מספר פעם אחת.<br>
“הפונקציה צריכה לקבל הימור בודד ואת סדר ההגעה”, כלומר צריכה להיות אפשרות לקבל הימורים שונים ולא רק את הדוגמאות האלה</p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/16">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/16</link>
<pubDate>Thu, 30 Apr 2020 08:55:30 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-16</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[chen1]]></dc:creator>
<description><![CDATA[
<p>אם לפי מה שים אמר לא אמור להיות אותו מספר פעמיים אז אני יכולה להחליף באמת את העוד 4 הזה בדוגמא ב8 נגיד?<br>
בהמשך לשאלה, אנחנו אמורים לתת אופציות להזנת הימורים או פשוט להזין בקוד את הדוגמאות ולרוץ עם זה?</p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/15">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/15</link>
<pubDate>Thu, 30 Apr 2020 08:49:53 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-15</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[devorack]]></dc:creator>
<description><![CDATA[
<p>כמו שכתבתי את הקוד הוא ייתן טעות אחת במקרה כזה, אבל השאלה היתה יותר עקרונית - מדובר על איזה מקום “אבסולוטי” ברצף הגיעה המכונית לא מי לפניה ומי אחריה (ותו’כ כדי שאני כותבת לא ברור לי האם הניסוח הזה טוב יותר), בכל אופן, ענית לשאלתי <img src="https://forums.pythonic.guru/images/emoji/twitter/slight_smile.png?v=9" title=":slight_smile:" class="emoji" alt=":slight_smile:"></p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/14">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/14</link>
<pubDate>Thu, 30 Apr 2020 01:32:44 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-14</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[Yam]]></dc:creator>
<description><![CDATA[
<p>הייתי אולי דואג בכ"ז להתחשב במקרה של טעות אחת למקרה שמישהו מזין 8, אבל לא חובה<br>
אפשר לייצר סאב־קטגוריות, אבל גם ככה אנשים מתקשים פה עם הפלטפורמה ועם החלוקה לקטגוריות אז נראה לי שנשאיר את זה ככה ונעודד אנשים להשתמש בחיפוש <img src="https://forums.pythonic.guru/images/emoji/twitter/slight_smile.png?v=9" title=":slight_smile:" class="emoji" alt=":slight_smile:"></p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/13">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/13</link>
<pubDate>Thu, 30 Apr 2020 01:15:54 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-13</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[devorack]]></dc:creator>
<description><![CDATA[
<p>לוודא שוב שהבנתי נכון - לא יכולה להיות טעות אחת. זה או שהכל נכון או שיש לפחות שתי טעויות?</p>
<p>ו…</p>
<p>האם אפשר ליצור סאב-קטגוריות בתוך הקטגוריות בפורום? (כלומר: שבוע - מחברת - תרגיל או כל פרמוטציה של הרצף הזה, יש כבר לפחות 3 דיונים שונים על תרגיל 56 שחלקם נקראים כך וחלקם פורלולה וכו)</p>
<p>אוקיי, וגם ה OCD שלי משפיע, אבל אני מסרבת להודות בכך</p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/12">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/12</link>
<pubDate>Thu, 30 Apr 2020 00:44:32 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-12</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[Yam]]></dc:creator>
<description><![CDATA[
<p>כן <img src="https://forums.pythonic.guru/images/emoji/twitter/slightly_smiling_face.png?v=9" title=":slightly_smiling_face:" class="emoji" alt=":slightly_smiling_face:"></p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/11">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/11</link>
<pubDate>Wed, 29 Apr 2020 22:13:09 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-11</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[Felixmn]]></dc:creator>
<description><![CDATA[
<p>אם כותבים קוד שמניח שמספר יכול לחזור על עצמו כמו בטעות הזו, עדיין תקין מבחינת הגשה?</p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/10">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/10</link>
<pubDate>Wed, 29 Apr 2020 21:57:45 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-10</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[Yam]]></dc:creator>
<description><![CDATA[
<p>טרם, לא נלמד עדיין במחברת הזו <img src="https://forums.pythonic.guru/images/emoji/twitter/slight_smile.png?v=9" title=":slight_smile:" class="emoji" alt=":slight_smile:"></p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/9">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/9</link>
<pubDate>Wed, 29 Apr 2020 19:09:22 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-9</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[yael.maritz]]></dc:creator>
<description><![CDATA[
<p>אפשר להשתמש בrange בביטוי של הfor?</p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/8">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/8</link>
<pubDate>Wed, 29 Apr 2020 19:09:01 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-8</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[arieveksler]]></dc:creator>
<description><![CDATA[
<p>זה חוסך לי הרבה מאמץ</p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/7">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/7</link>
<pubDate>Wed, 29 Apr 2020 11:16:34 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-7</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[Yam]]></dc:creator>
<description><![CDATA[
<p>זו אכן טעות בדוגמה, כל מספר אמור להופיע פעם אחת</p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/6">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/6</link>
<pubDate>Wed, 29 Apr 2020 10:33:30 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-6</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[Rach]]></dc:creator>
<description><![CDATA[
<p>זאת שאלה, כי באחת הדוגמאות המספר 4 מופיע פעמיים, ואני תוהה אם זה בכוונה או בטעות.<br>
<a class="mention" href="https://forums.pythonic.guru/u/yam">@Yam</a>?</p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/5">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/5</link>
<pubDate>Wed, 29 Apr 2020 10:27:44 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-5</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[orpazf]]></dc:creator>
<description><![CDATA[
<p>אני חושבת שאפשר להשתמש גם בנתון שכל מכונית אמורה להופיע פעם אחת בסדר הנכון</p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/4">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/4</link>
<pubDate>Wed, 29 Apr 2020 09:16:58 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-4</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[arieveksler]]></dc:creator>
<description><![CDATA[
<p>זה נובע מהאופן שבו כתבתי את הפונקציה.<br>
במקרה הזה אני מעדכן את האינדקס עבור כל איבר. במצב שבו האיבר חוזר על עצמו האינדקס נע בין 0 ל 1</p>
<p>אני בטוח שיש דרך שזה יעבוד, מה שאני רוצה להבין זה מה אני מפספס או אם בשלב הזה אין לנו מספיק מידע כדי לכסות את כל המצבים</p>
<p>לדוגמה:<br>
את המצב של [6, 6, 6, 6, 6, 6]<br>
פתרתי ככה index = 0 אתחול לפני הלולאה<br>
והוצאת index = order_guess.index(car)<br>
מתוך הלולאה</p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/3">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/3</link>
<pubDate>Tue, 28 Apr 2020 23:11:32 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-3</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[orpazf]]></dc:creator>
<description><![CDATA[
<p>אפשר לבצע זאת גם עם לולאת for. מה מפריע לך בדוגמאות שנתת? מה היחס השונה שנדרש לדעתך?</p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/2">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/2</link>
<pubDate>Tue, 28 Apr 2020 23:07:24 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-2</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
<item>
<title>פורלולה 1 - מחברת 1</title>
<dc:creator><![CDATA[arieveksler]]></dc:creator>
<description><![CDATA[
<p>אהלן,</p>
<p>בשאלת התרגול של פורלולה 1, הצלחתי לייצר פונקציה שתחזיר ערך מתאים עבור מקרי הדוגמא.<br>
אבל עבור מקרה הקצה [6 ,6 ,6 ,6 ,6 ,6] הפונקציה דורשת התייחסות שונה.<br>
ועבור [6 ,5 ,6 ,6 ,6 ,6] יחס שונה מהמקרה הקודם.<br>
[6 ,6 ,3 ,3 ,1 ,1] וכן הלאה<br>
כלומר לא הצלחתי לייצר פונקציה שעונה על כל המקרים עם הרעיונות שעלו לי.</p>
<p>האם אני צריך להתייחס למקרים האלה בשלב הזה, ויש לנו מספיק מידע על לולאת for בשביל לפתור איתה את זה?<br>
אני רואה איך אני מיישם עם while את כל המצבים.<br>
הבעיה שאני רואה היא פניה למיקום האיבר ברשימה, פתרון נוסף הוא לצמצם את הרשימות לאחר כל השוואה אבל קיבלתי את הרושם שזה לא מנומס.</p>
<p>הצעות, רעיונות?</p>
<p><a href="https://forums.pythonic.guru/t/1-1/5534/1">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/1-1/5534/1</link>
<pubDate>Tue, 28 Apr 2020 23:01:15 +0000</pubDate>
<guid isPermaLink="false">forums.pythonic.guru-post-5534-1</guid>
<source url="https://forums.pythonic.guru/t/1-1/5534.rss">פורלולה 1 - מחברת 1</source>
</item>
</channel>
</rss>