-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path20.rss
659 lines (644 loc) · 52.4 KB
/
20.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
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:discourse="http://www.discourse.org/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>הקורס הפתוח - פייתון בעברית ובחינם</title>
<link>https://forums.pythonic.guru/c/old/20</link>
<description>נושאים בקטגוריה ‚הקורס הפתוח’ כאן ירוכזו השבועות שהועברו במסגרת הקורס האינטרנטי הפתוח “לומדים פייתון” בשנים 2020–2021.</description>
<language>he</language>
<lastBuildDate>Fri, 26 May 2023 08:57:31 +0000</lastBuildDate>
<atom:link href="https://forums.pythonic.guru/c/old/20.rss" rel="self" type="application/rss+xml" />
<item>
<title>מחברת 4 - ויקיפדיה</title>
<dc:creator><![CDATA[arieveksler]]></dc:creator>
<category>שבוע 6</category>
<description><![CDATA[
<p>במערכת הפעלה MacOS ventura 13<br>
כשניסיתי לייבא את המודול wikipedia כמו בדוגמה -<br>
התקבלה השגיאה ״ImportError: cannot import name ‘get_host’ from ‘urllib3.util.url’ ״<br>
לאחר שניסיתי לפתור את זה באמצעות שינוי גרסא של urllib3<br>
קיבלתי את השגיאה ״urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the ‘ssl’ module is compiled with LibreSSL 2.8.3. See: <a href="https://github.com/urllib3/urllib3/issues/2168%D7%B4" rel="noopener nofollow ugc">https://github.com/urllib3/urllib3/issues/2168״</a></p>
<p>וככה נכנסתי ללופים שכל פתרון הוביל חזרה לשגיאה הקודמת.</p>
<p>הפתרון:</p>
<ol>
<li>
<p>מהטרמינל<br>
מחיקה של הספריה pip uninstall urllib3<br>
והתקנה שלה מחדש בגרסא ישנה יותר שתומכת במערכת ההפעלה שלי באמצעות pip install ‘urllib3<2.0’</p>
</li>
<li>
<p>דרך אחרת וטיפה יותר מורכבת - התקנה של סביבה וירטואלית<br>
python3 -m venv myenv<br>
source myenv/bin/activate<br>
והרצה מחדש של המחברת דרך הסביבה.</p>
</li>
</ol>
<p><small>פוסט 1 - משתתף 1</small></p>
<p><a href="https://forums.pythonic.guru/t/topic/9694">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/topic/9694</link>
<pubDate>Fri, 26 May 2023 08:57:31 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9694</guid>
<source url="https://forums.pythonic.guru/t/topic/9694.rss">מחברת 4 - ויקיפדיה</source>
</item>
<item>
<title>Pip search מחברת ארבע</title>
<dc:creator><![CDATA[arieveksler]]></dc:creator>
<category>שבוע 6</category>
<description><![CDATA[
<p>ניסיתי להריץ pip search</p>
<p>אבל קיבלתי את השגיאה הבאה:</p>
<pre><code class="lang-auto"> ERROR: XMLRPC request failed [code: -32500]
RuntimeError: PyPI no longer supports 'pip search' (or XML-RPC search). Please use https://pypi.org/search (via a browser) instead. See https://warehouse.pypa.io/api-reference/xml-rpc.html#deprecated-methods for more information.
</code></pre>
<p>למיטב הבנתי הפ��ודה לא נתמכת יותר ולכן יש לחפש באתר <a href="https://pypi.org/search" class="inline-onebox" rel="noopener nofollow ugc">Search results · PyPI</a> באמצעות הדפדפן<br>
או באמצעות חבילת צד שלישי pip-search באופן הבא: pip_search.</p>
<p><small>פוסט 1 - משתתף 1</small></p>
<p><a href="https://forums.pythonic.guru/t/pip-search/9690">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/pip-search/9690</link>
<pubDate>Wed, 24 May 2023 15:06:36 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9690</guid>
<source url="https://forums.pythonic.guru/t/pip-search/9690.rss">Pip search מחברת ארבע</source>
</item>
<item>
<title>בדיקת תרגיל מפענח הצפנים שבוע 2</title>
<dc:creator><![CDATA[elyaz]]></dc:creator>
<category>שבוע 2</category>
<description><![CDATA[
<p>שלום<br>
ראשית תודה על הקורס המושקע! ממש מאתגר.</p>
<p>פתרתי את התרגיל של צפנת פענח <img src="https://forums.pythonic.guru/images/emoji/twitter/slight_smile.png?v=12" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"><br>
יש מישהו שיכול לבדוק את הקוד ולתת לי עליו פידבק?<br>
תודה!</p>
<p><small>2 פוסטים - 2 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/topic/9675">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/topic/9675</link>
<pubDate>Wed, 19 Apr 2023 19:26:22 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9675</guid>
<source url="https://forums.pythonic.guru/t/topic/9675.rss">בדיקת תרגיל מפענח הצפנים שבוע 2</source>
</item>
<item>
<title>ממש קולץ בישבן- התאמה ל1000 מספרים</title>
<dc:creator><![CDATA[nadavdory]]></dc:creator>
<category>שבוע 3</category>
<description><![CDATA[
<p>היי<br>
פתרתי את השאלה של ממש קולץ בישבן למספרים 1 עד 5 כמו בדוגמה<br>
אבל כשאני משנה את המשתנים שלי כדי שיתאים ל1000, מופיעה לי תקלה ללא פירוט (מצורפת תמונה)<br>
מישהו יודע אולי איך לעזור לי?<br>
יש לציין שכשאני מריץ את הקוד עם ה1000, מופיעה כוכבית בסוגריים של השורת קוד שהרצתי, ואחרי שאני לוחץ על להפסיק הרצה קופצת התקלה הנ"ל<br>
תודה מראש <img src="https://forums.pythonic.guru/images/emoji/twitter/slight_smile.png?v=12" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p>
<p><small>2 פוסטים - 2 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/topic/9620">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/topic/9620</link>
<pubDate>Wed, 28 Dec 2022 13:00:49 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9620</guid>
<source url="https://forums.pythonic.guru/t/topic/9620.rss">ממש קולץ בישבן- התאמה ל1000 מספרים</source>
</item>
<item>
<title>חיבור הפונקציות</title>
<dc:creator><![CDATA[nadavdory]]></dc:creator>
<category>שבוע 2</category>
<description><![CDATA[
<p>בשאלה של מערכת הבנק מבקשים שאכתוב פונקציה שלוקחת את הערך הבוליאני שהפונקציה הראשונה מוציאה וליצור הודעה בהתאם לכך למשתמש אבל אני לא מצליח להבין איך אני בונה פונקציה שמסתמכת על פלט של פונקציה אחרת ואשמח לעזרה בזה.<br>
יש לציין שניסיתי להגיד בפונקציה החדשה בעזרת השמה את הפונקציה הראשונה בתוך הפונקציה השנייה<br>
תודה מראש</p>
<p><small>9 פוסטים - 2 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/topic/9609">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/topic/9609</link>
<pubDate>Mon, 12 Dec 2022 19:13:58 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9609</guid>
<source url="https://forums.pythonic.guru/t/topic/9609.rss">חיבור הפונקציות</source>
</item>
<item>
<title>שאלת נאום גטיסבורג</title>
<dc:creator><![CDATA[nadavdory]]></dc:creator>
<category>שבוע 2</category>
<description><![CDATA[
<p>היי<br>
אני בשאלה של נאום גטיסבורג בחוברת methods, ומקבל את השגיאה הזאת: ‘str’ object is not callable<br>
אני מאמין שיש משהו בהבנה שלי לגבי .split ו.count שאני מתקשה לתפוס כי בראיון אני רוצה לספור את כמות הפעמים שמופיעה המילה שמבקשים ממני, לחלק בכמות המילים בנאום ומכפיל במאה. אבל המערכת לא נותנת לי לבצע השמה לקאונט או ספליט ככה שאני לא מצליח להגיע לחישוב עצמו מבלי להיתקל בתקלה<br>
אשמח לעזרה<br>
תודה <img src="https://forums.pythonic.guru/images/emoji/twitter/slight_smile.png?v=12" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p>
<p><small>4 פוסטים - 2 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/topic/9603">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/topic/9603</link>
<pubDate>Sat, 03 Dec 2022 22:22:00 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9603</guid>
<source url="https://forums.pythonic.guru/t/topic/9603.rss">שאלת נאום גטיסבורג</source>
</item>
<item>
<title>שאלת מעפנח הצפנים</title>
<dc:creator><![CDATA[nadavdory]]></dc:creator>
<category>שבוע 2</category>
<description><![CDATA[
<p>היי<br>
כבר למעלה משבועיים שאני שובר את הראש על השאלה של הבול פגיעה ואני מרגיש כאילו יש משהו שלמדתי בשיעורים הקודמים ואני לא מיישם בשאלה שיכול לעזור לפתוח אותה בקלות רבה<br>
מישהו אולי יכול לתת לי רמז??? אני מאבד את העשתונות <img src="https://forums.pythonic.guru/images/emoji/twitter/slight_smile.png?v=12" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p>
<p><small>3 פוסטים - 2 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/topic/9600">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/topic/9600</link>
<pubDate>Sun, 27 Nov 2022 21:50:44 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9600</guid>
<source url="https://forums.pythonic.guru/t/topic/9600.rss">שאלת מעפנח הצפנים</source>
</item>
<item>
<title>שאלת קוד לכספת- בול פגיעה</title>
<dc:creator><![CDATA[nadavdory]]></dc:creator>
<category>שבוע 2</category>
<description><![CDATA[
<p>היי כולם<br>
אני עושה את השאלה של הקוד לכספת שצריך לכתוב כבול פגיעה, בשיעור פונקציות בשבוע 2, אבל נתקל בבעיה שבה אחרי שכתבתי את כל הקוד לניסיון הראשון, לא משנה איזה ספרות אני מקיש הפלט שיוצא הוא אותו הפלט מהelif הראשון שכתבתי, למעט אם אני כותב את הסיסמא הנכונה.<br>
מצרף תמונה של הקוד הראשוני שכתבתי. אני יוצא מנקודת הנחה שברגע שאני כותב את המסגרת של הפונקציה לניסיון הראשון יהיה לי תבנית שבה אוכל להשתמש גם לנסיון השני והשלישי של הקלדת הסיסמא, אז אם אני טועה אשמח שמישהו יתקן אותי גם בזה</p>
<p>תודה מראש<br>
נדב<br>
</p><div class="lightbox-wrapper"><a class="lightbox" href="https://forums.pythonic.guru/uploads/default/original/2X/a/ae1483f2c04975a87c9d04f8cfd7126a614ca8e1.png" data-download-href="https://forums.pythonic.guru/uploads/default/ae1483f2c04975a87c9d04f8cfd7126a614ca8e1" title="image"><img src="https://forums.pythonic.guru/uploads/default/optimized/2X/a/ae1483f2c04975a87c9d04f8cfd7126a614ca8e1_2_690x388.png" alt="image" data-base62-sha1="oPZ26uXDMjVZZqWGZB0jJdgYDVT" width="690" height="388" srcset="https://forums.pythonic.guru/uploads/default/optimized/2X/a/ae1483f2c04975a87c9d04f8cfd7126a614ca8e1_2_690x388.png, https://forums.pythonic.guru/uploads/default/optimized/2X/a/ae1483f2c04975a87c9d04f8cfd7126a614ca8e1_2_1035x582.png 1.5x, https://forums.pythonic.guru/uploads/default/optimized/2X/a/ae1483f2c04975a87c9d04f8cfd7126a614ca8e1_2_1380x776.png 2x" data-small-upload="https://forums.pythonic.guru/uploads/default/optimized/2X/a/ae1483f2c04975a87c9d04f8cfd7126a614ca8e1_2_10x10.png"></a></div><p></p>
<p><small>6 פוסטים - 2 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/topic/9554">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/topic/9554</link>
<pubDate>Thu, 17 Nov 2022 14:42:49 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9554</guid>
<source url="https://forums.pythonic.guru/t/topic/9554.rss">שאלת קוד לכספת- בול פגיעה</source>
</item>
<item>
<title>היכן אוכל למצוא את יתר הסרטונים?</title>
<dc:creator><![CDATA[liatyam]]></dc:creator>
<category>הקורס הפתוח</category>
<description><![CDATA[
<p>שלום רב,</p>
<p>אני משתמשת חדשה שנהנית מאוד לצפות בסרטונים באתר ומקווה ללמוד לתכנת בפייתון באופן הטוב ביותר.<br>
שאלה - אני רואה שיש הפניה מהאתר לסרטוני שבוע 4, אך בערוץ היוטיוב יש רק סרטון אחד בקטגוריה. היכן אוכל למצוא את שאר הסרטונים? וכמה שבועות יש בקורס? תודה רבה וסוף שבוע נעים!</p>
<p><small>2 פוסטים - 2 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/topic/9467">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/topic/9467</link>
<pubDate>Fri, 20 May 2022 13:06:09 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9467</guid>
<source url="https://forums.pythonic.guru/t/topic/9467.rss">היכן אוכל למצוא את יתר הסרטונים?</source>
</item>
<item>
<title>צריך את קבצי הקורס בדרייב</title>
<dc:creator><![CDATA[05484]]></dc:creator>
<category>הקורס הפתוח</category>
<description><![CDATA[
<p>שלום שבוע טוב<br>
אני חדש כאן !<br>
יש לי בעיה לגשת להורדה של קבצי הקורס<br>
אשמח אם אוכל לקבלם דרך דרייב או ישירות למייל.<br>
תודה מראש !<br>
שאלה נוספת האם אפשר לקבל גם את סרטוני ההדרכה להורדה [לא תמיד האינטרנט זמין לי ונוח לי לעבוד גם באופליין].</p>
<p><small>3 פוסטים - 2 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/topic/9429">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/topic/9429</link>
<pubDate>Sat, 09 Apr 2022 20:03:00 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9429</guid>
<source url="https://forums.pythonic.guru/t/topic/9429.rss">צריך את קבצי הקורס בדרייב</source>
</item>
<item>
<title>ה- Method ואחד התרגילים הקשורים לנושא לא ברורים לי</title>
<dc:creator><![CDATA[Human155]]></dc:creator>
<category>שבוע 2</category>
<description><![CDATA[
<p></p><div class="lightbox-wrapper"><a class="lightbox" href="https://forums.pythonic.guru/uploads/default/original/2X/5/567b467db7973703e92ad66668c8db135b27b339.png" data-download-href="https://forums.pythonic.guru/uploads/default/567b467db7973703e92ad66668c8db135b27b339" title="Screenshot 2022-02-10 154325"><img src="https://forums.pythonic.guru/uploads/default/optimized/2X/5/567b467db7973703e92ad66668c8db135b27b339_2_690x301.png" alt="Screenshot 2022-02-10 154325" data-base62-sha1="cl3b4SU4vtdwyqLvIo8zSq4ioid" width="690" height="301" srcset="https://forums.pythonic.guru/uploads/default/optimized/2X/5/567b467db7973703e92ad66668c8db135b27b339_2_690x301.png, https://forums.pythonic.guru/uploads/default/optimized/2X/5/567b467db7973703e92ad66668c8db135b27b339_2_1035x451.png 1.5x, https://forums.pythonic.guru/uploads/default/optimized/2X/5/567b467db7973703e92ad66668c8db135b27b339_2_1380x602.png 2x" data-small-upload="https://forums.pythonic.guru/uploads/default/optimized/2X/5/567b467db7973703e92ad66668c8db135b27b339_2_10x10.png"></a></div><br>
לא הבנתי בכלל מה אני אמור לעשות פה, וכל נושא ה-Method לא ברור לי בכלל בראש.<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://forums.pythonic.guru/uploads/default/original/2X/1/11cbd51550b79a31df14a2b82d8f5d7b272e40db.png" data-download-href="https://forums.pythonic.guru/uploads/default/11cbd51550b79a31df14a2b82d8f5d7b272e40db" title="Screenshot 2022-02-10 155509"><img src="https://forums.pythonic.guru/uploads/default/optimized/2X/1/11cbd51550b79a31df14a2b82d8f5d7b272e40db_2_690x230.png" alt="Screenshot 2022-02-10 155509" data-base62-sha1="2xqPcp0P28KSSLjriKPCpDFx8IH" width="690" height="230" srcset="https://forums.pythonic.guru/uploads/default/optimized/2X/1/11cbd51550b79a31df14a2b82d8f5d7b272e40db_2_690x230.png, https://forums.pythonic.guru/uploads/default/optimized/2X/1/11cbd51550b79a31df14a2b82d8f5d7b272e40db_2_1035x345.png 1.5x, https://forums.pythonic.guru/uploads/default/optimized/2X/1/11cbd51550b79a31df14a2b82d8f5d7b272e40db_2_1380x460.png 2x" data-small-upload="https://forums.pythonic.guru/uploads/default/optimized/2X/1/11cbd51550b79a31df14a2b82d8f5d7b272e40db_2_10x10.png"></a></div><br>
בנוסף לא הבנתי לגמרי כיצד ה-strip קובע מאיזה חלק עד איזה חלק במחרוזת, הוא מנקה לפי התווים שנמצאים בתוכו. (וגם למה התו ~ מופיע אם הוא לא נמצא כלל במחרוזת?)<p></p>
<p><small>2 פוסטים - 2 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/method/9388">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/method/9388</link>
<pubDate>Thu, 10 Feb 2022 13:57:47 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9388</guid>
<source url="https://forums.pythonic.guru/t/method/9388.rss">ה- Method ואחד התרגילים הקשורים לנושא לא ברורים לי</source>
</item>
<item>
<title>שאלה לגבי נקודותיים בקוד</title>
<dc:creator><![CDATA[mayayona123]]></dc:creator>
<category>שבוע 4</category>
<description><![CDATA[
<p>print(‘favorite_animals items:’)<br>
for character, animal in favorite_animals.items():<br>
print(f"{character:10} -----> {animal}.")<br>
מה בעצם עושה ה:10 בקוד הזה? (בפרינט)<br>
תודה!</p>
<p><small>2 פוסטים - 2 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/topic/9380">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/topic/9380</link>
<pubDate>Wed, 02 Feb 2022 10:42:02 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9380</guid>
<source url="https://forums.pythonic.guru/t/topic/9380.rss">שאלה לגבי נקודותיים בקוד</source>
</item>
<item>
<title>חוטש: חיבור מספר לא קבוע של רשימות</title>
<dc:creator><![CDATA[mayayona123]]></dc:creator>
<category>שבוע 3</category>
<description><![CDATA[
<p>היי, ממש מסתבכת עם התרגיל. חושבת שלא הבנתי איך בדיוק מחברים מספר לא מזוהה של רשימות לרשימה אחת אשמח לעזרה</p>
<p><small>2 פוסטים - 2 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/topic/9381">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/topic/9381</link>
<pubDate>Tue, 01 Feb 2022 20:56:46 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9381</guid>
<source url="https://forums.pythonic.guru/t/topic/9381.rss">חוטש: חיבור מספר לא קבוע של רשימות</source>
</item>
<item>
<title>לא מצליח את מפענח הצפנים – חוזר None</title>
<dc:creator><![CDATA[hemllijoni]]></dc:creator>
<category>שבוע 2</category>
<description><![CDATA[
<p>אני לא מצליח את התרגיל אם מישהו יכול לעזור לי<br>
ניסיתי להיעזר בתגובות שלכם אבל משום מה זה מחזיר לי none כל פעם ואני לא מצליח פשוט<br>
אשמח לראות פתרון אם יש למישהו</p>
<p><small>2 פוסטים - 2 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/none/9379">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/none/9379</link>
<pubDate>Mon, 31 Jan 2022 18:37:20 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9379</guid>
<source url="https://forums.pythonic.guru/t/none/9379.rss">לא מצליח את מפענח הצפנים – חוזר None</source>
</item>
<item>
<title>בעיות בחישוב המשתנים</title>
<dc:creator><![CDATA[Human155]]></dc:creator>
<category>שבוע 1</category>
<description><![CDATA[
<p></p><div class="lightbox-wrapper"><a class="lightbox" href="https://forums.pythonic.guru/uploads/default/original/2X/a/aad4b9407f01c83eab4eff8cee3505f58c0eaa50.png" data-download-href="https://forums.pythonic.guru/uploads/default/aad4b9407f01c83eab4eff8cee3505f58c0eaa50" title="Screenshot 2022-01-24 204101"><img src="https://forums.pythonic.guru/uploads/default/optimized/2X/a/aad4b9407f01c83eab4eff8cee3505f58c0eaa50_2_690x225.png" alt="Screenshot 2022-01-24 204101" data-base62-sha1="oneVyhFp4cqfswIAzIniny7mLdK" width="690" height="225" srcset="https://forums.pythonic.guru/uploads/default/optimized/2X/a/aad4b9407f01c83eab4eff8cee3505f58c0eaa50_2_690x225.png, https://forums.pythonic.guru/uploads/default/optimized/2X/a/aad4b9407f01c83eab4eff8cee3505f58c0eaa50_2_1035x337.png 1.5x, https://forums.pythonic.guru/uploads/default/optimized/2X/a/aad4b9407f01c83eab4eff8cee3505f58c0eaa50_2_1380x450.png 2x" data-small-upload="https://forums.pythonic.guru/uploads/default/optimized/2X/a/aad4b9407f01c83eab4eff8cee3505f58c0eaa50_2_10x10.png"></a></div><br>
מה פה עשיתי לא נכון, למה זה לא מציג לי תשובה כשאני לוחץ Ctrl+Enter?<p></p>
<p><small>4 פוסטים - 3 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/topic/9371">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/topic/9371</link>
<pubDate>Mon, 24 Jan 2022 18:52:26 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9371</guid>
<source url="https://forums.pythonic.guru/t/topic/9371.rss">בעיות בחישוב המשתנים</source>
</item>
<item>
<title>מחברת 1 תרגיל: דירוג משוכלל</title>
<dc:creator><![CDATA[noamhala05]]></dc:creator>
<category>שבוע 13</category>
<description><![CDATA[
<p>היי,<br>
אני מסתפק האם התרגיל הזה באמת כזה ארוך בשורה של הSELECT או שאני מטומטם, יוצא לי בעיה אריתמטית ארוכה בטירוף שאי אפשר להבין ממנה כלום, אשמח לעזרה</p>
<p><small>3 פוסטים - 2 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/topic/9300">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/topic/9300</link>
<pubDate>Tue, 09 Nov 2021 19:14:30 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9300</guid>
<source url="https://forums.pythonic.guru/t/topic/9300.rss">מחברת 1 תרגיל: דירוג משוכלל</source>
</item>
<item>
<title>Merge הכשלת הפעולה</title>
<dc:creator><![CDATA[noamhala05]]></dc:creator>
<category>שבוע 10</category>
<description><![CDATA[
<aside class="quote no-group" data-username="Yam" data-post="6" data-topic="8123">
<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"><a href="https://forums.pythonic.guru/t/merge/8123/6">Merge - איחוד שתי תיקיות?</a>
</div>
<blockquote>
<p>כן – צריך להכשיל את ה־merge אם תכולת ה־staging area שונה מהתכולת התיקייה של ה־commit id האחרון.</p>
</blockquote>
</aside>
<p>אתה מתכוון שצריך להכשיל את ה-merge במקרה תכולת ה-staging area שונה מהcommit id של Head לא?</p>
<p><small>2 פוסטים - 2 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/merge/9199">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/merge/9199</link>
<pubDate>Thu, 02 Sep 2021 18:31:55 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9199</guid>
<source url="https://forums.pythonic.guru/t/merge/9199.rss">Merge הכשלת הפעולה</source>
</item>
<item>
<title>תיקונים - אורטל קומבט חלק 1</title>
<dc:creator><![CDATA[112344asafh]]></dc:creator>
<category>שבוע 7</category>
<description><![CDATA[
<p>יכול להיות שהקטע הבא מופיע רק במחברת שלי כי אני מעריך שתקלה זו לא הופיע במהלך הקורס אחרת העניין היה עולה, אולם במידה ולא כך הדבר נראלי עדיף לתקן את העניין.</p>
<p>משהו נדפק עם הsyntax (לא בטוח איך קוראים לזה <img src="https://forums.pythonic.guru/images/emoji/twitter/sweat_smile.png?v=10" title=":sweat_smile:" class="emoji" alt=":sweat_smile:">)<br>
</p><div class="lightbox-wrapper"><a class="lightbox" href="https://forums.pythonic.guru/uploads/default/original/2X/7/73af6e20d77aaab6a4cc826ab70053e1e33432f5.png" data-download-href="https://forums.pythonic.guru/uploads/default/73af6e20d77aaab6a4cc826ab70053e1e33432f5" title="image"><img src="https://forums.pythonic.guru/uploads/default/optimized/2X/7/73af6e20d77aaab6a4cc826ab70053e1e33432f5_2_690x69.png" alt="image" data-base62-sha1="gvoLwBGXLTKJKTz0JpRyiwfCcXX" width="690" height="69" srcset="https://forums.pythonic.guru/uploads/default/optimized/2X/7/73af6e20d77aaab6a4cc826ab70053e1e33432f5_2_690x69.png, https://forums.pythonic.guru/uploads/default/optimized/2X/7/73af6e20d77aaab6a4cc826ab70053e1e33432f5_2_1035x103.png 1.5x, https://forums.pythonic.guru/uploads/default/optimized/2X/7/73af6e20d77aaab6a4cc826ab70053e1e33432f5_2_1380x138.png 2x" data-small-upload="https://forums.pythonic.guru/uploads/default/optimized/2X/7/73af6e20d77aaab6a4cc826ab70053e1e33432f5_2_10x10.png"></a></div><p></p>
<p>במקום: </p><div class="lightbox-wrapper"><a class="lightbox" href="https://forums.pythonic.guru/uploads/default/original/2X/3/31661d17cb5c5ad2ceb22b616c141b62fffde547.png" data-download-href="https://forums.pythonic.guru/uploads/default/31661d17cb5c5ad2ceb22b616c141b62fffde547" title="image"><img src="https://forums.pythonic.guru/uploads/default/optimized/2X/3/31661d17cb5c5ad2ceb22b616c141b62fffde547_2_690x140.png" alt="image" data-base62-sha1="730aL267qVZ1UsslN4V82Xsyntl" width="690" height="140" srcset="https://forums.pythonic.guru/uploads/default/optimized/2X/3/31661d17cb5c5ad2ceb22b616c141b62fffde547_2_690x140.png, https://forums.pythonic.guru/uploads/default/original/2X/3/31661d17cb5c5ad2ceb22b616c141b62fffde547.png 1.5x, https://forums.pythonic.guru/uploads/default/original/2X/3/31661d17cb5c5ad2ceb22b616c141b62fffde547.png 2x" data-small-upload="https://forums.pythonic.guru/uploads/default/optimized/2X/3/31661d17cb5c5ad2ceb22b616c141b62fffde547_2_10x10.png"></a></div><p></p>
<p><small>4 פוסטים - 2 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/topic/9190">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/topic/9190</link>
<pubDate>Sun, 29 Aug 2021 10:17:26 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9190</guid>
<source url="https://forums.pythonic.guru/t/topic/9190.rss">תיקונים - אורטל קומבט חלק 1</source>
</item>
<item>
<title>Wit check החלפת קבצים</title>
<dc:creator><![CDATA[noamhala05]]></dc:creator>
<category>שבוע 10</category>
<description><![CDATA[
<blockquote>
<ol>
<li>קבצים שמופיעים תחת הכותרת <code>Untracked files:</code> לא ישונו – הם ישארו כמו שהם, והקבצים שלצידם יוחלפו או יווצרו.</li>
</ol>
</blockquote>
<p>מה זה אומר שהקבצים לצידם יווצרו?</p>
<p><small>11 פוסטים - 2 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/wit-check/9181">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/wit-check/9181</link>
<pubDate>Fri, 27 Aug 2021 12:16:30 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9181</guid>
<source url="https://forums.pythonic.guru/t/wit-check/9181.rss">Wit check החלפת קבצים</source>
</item>
<item>
<title>קובץ עם רווח בשם</title>
<dc:creator><![CDATA[noamhala05]]></dc:creator>
<category>שבוע 10</category>
<description><![CDATA[
<p>האם כשאני מקבל קובץ בתור ארגומנט בcmd אני יכול להניח שאין רווחים בשמות הקבצים בנתיב/ הנתיב בסוגריים?<br>
כי אם לא זה בעצם מתחלק לכמה ארגומנטים.<br>
ואם אני לא יכול להניח, מה כדאי לעשות?</p>
<p><small>4 פוסטים - 3 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/topic/9178">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/topic/9178</link>
<pubDate>Thu, 26 Aug 2021 08:54:13 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9178</guid>
<source url="https://forums.pythonic.guru/t/topic/9178.rss">קובץ עם רווח בשם</source>
</item>
<item>
<title>על מהירות, וזיכרון בין השיטות generators, list comprehension ופונקציות רגילות</title>
<dc:creator><![CDATA[112344asafh]]></dc:creator>
<category>שבוע 6</category>
<description><![CDATA[
<p>קוד קטן שמצאתי באינטרנט אפשר לי לראות בעיניים את ההבדל בין השיטות השונות מבחינת יעילות של זיכרון וזמנים וחשבתי לשתף פה את מי שהעניין מסקרן אותו. כל פעם תפעילו מתודה אחת ותעשו comment לשניים האחרים.</p>
<p>אוסיף ואומר שישנם דברים שלא ברורים לי ומי שיכול להבהיר לי את העניין אודה לו מאוד.<br>
שאלתי כאן שלוש שאלות שהם בעצם שאלה אחת עם כמה אספקטים.</p>
<p>א. מדוע ב the list comprehension method כאשר אני מבצע השמה למשתנה (X = list(people_interator)) הזיכרון של המערכת קופץ ישר לMB300 כאילו אני משתמש במתודה הראשונה. על פניו זה נשמע הגיוני כי אני שומר במערכת זיכרון רב, אולם מצד שני אם אני בוחר לעשות הדפסה לאותה רשימה, פעולה שמשאירה אותי עם זיכרון נמוך מאוד, אני מקבל את כל הערכים בבת אחת, וזה כאשר הgenerator כבר לא יכול להוציא עוד ערכים. ועל פניו נראה שאם אני מקבל את כל הערכים בבת אחת זה אומר שהם שמורים איפשהו במחשב לא כן? אבל אם ככה מדוע לא מופיעה במצב כזה הקפיצה בזיכרון. הסתירה כאן לא ברורה לי.</p>
<p>א.2 אם אכן כל שמירת מידע גם generators שכל מטרתם לחסוך בזיכרון, לא יכולים לעזור לי, האם זה בעצם מייתר את העבודה שלהם במקרים רבים. כלומר כל עוד אני לא רוצה רק להדפיס מידע ספציפי אלא להשתמש בכל המידע הקיים כדי להפיק תועלת האם יכולת זו לא תוכל לעזור לי?</p>
<p>ב. שאלה זו קשורה במעט לסעיף א. כאשר אני עושה list comprehension איפה נשמר המידע עד שהפעולה נגמרת, הרי כל הרעיון בgenerator שכל פעם עובדים על פיסת מידע חדשה והקודמת נדרסת?<br>
לצורך העניין יש לי רצון לספור תווים לתוך מילון ואין לי רצון להכניס ערכים שכבר הכנסתי כיצד אני עושה זאת?<br>
הקוד הבא ירוץ לי שלוש פעמים במקום פעמיים. ולהוסיף if letter not in word_dic לא עושה את העבודה כי מבחינת המחשב לא הוכנסו הערכים עדיין למילון.<br>
פתרון אלגנטי שראיתי הוא להוריד את התנאי ואת המילון הריק ואת זה להכניס ללולאה set(word)</p>
<pre><code class="lang-auto">'word = 'aba
word_dic = {}
word_dic = {letter : word.count(letter) for letter in word if letter not in word_dic}
</code></pre>
<p>תודה ענקית למי שמתייחס <img src="https://forums.pythonic.guru/images/emoji/twitter/slight_smile.png?v=10" title=":slight_smile:" class="emoji" alt=":slight_smile:"></p>
<h1>
<a name="the-original-method-1" class="anchor" href="https://forums.pythonic.guru#the-original-method-1"></a>the original method</h1>
<p>Memory (Before): [18.285] Mb<br>
Memory (After) : [304.972] Mb<br>
Took 1.5 Seconds</p>
<h1>
<a name="the-generator-method-2" class="anchor" href="https://forums.pythonic.guru#the-generator-method-2"></a>the generator method</h1>
<p>Memory (Before): [18.289] MB<br>
Memory (After) : [18.300] MB<br>
Took 1.578 Seconds</p>
<h1>
<a name="the-list-comprehension-method-3" class="anchor" href="https://forums.pythonic.guru#the-list-comprehension-method-3"></a>the list comprehension method</h1>
<p>Memory (Before): [18.289] MB<br>
Memory (After) : [18.914] MB<br>
Took 1.71875 Seconds</p>
<h1>
<a name="comment-4" class="anchor" href="https://forums.pythonic.guru#comment-4"></a>כל פעם תפעילו מתודה אחת ותעשו comment לשניים האחרים.</h1>
<p>את memory_profiler ��צטרכו להתקין</p>
<pre><code class="lang-auto">import memory_profiler
import random
import time
names = ['John', 'Corey', 'Adam', 'Steve', 'Rick', 'Thomas']
majors = ['Math', 'Engineering', 'CompSci', 'Arts', 'Business']
print('Memory (Before): ' + str(memory_profiler.memory_usage()) + ' MB' )
def people_list(num_people):
result = []
for i in range(num_people):
person = {
'id': i,
'name': random.choice(names),
'major': random.choice(majors)
}
result.append(person)
return result
def people_generator(upper_bound):
i = 0
while i < upper_bound:
person = {
'id': i,
'name': random.choice(names),
'major': random.choice(majors)
}
i += 1
yield person
t1 = time.process_time()
population = 1000000
# the original method
people = people_list(population)
# the generator method < -------------------------
#people_interator = people_generator(population)
#for _ in range(population):
# next(people_interator)
# the list comprehension method < -------------------------
# people_interator = people_generator(population)
# list(people_interator)
t2 = time.process_time()
print('Memory (After) : {} Mb'.format(memory_profiler.memory_usage()))
print( 'Took {} Seconds'.format(t2-t1))
</code></pre>
<p><small>3 פוסטים - 2 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/generators-list-comprehension/9174">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/generators-list-comprehension/9174</link>
<pubDate>Wed, 18 Aug 2021 12:19:40 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9174</guid>
<source url="https://forums.pythonic.guru/t/generators-list-comprehension/9174.rss">על מהירות, וזיכרון בין השיטות generators, list comprehension ופונקציות רגילות</source>
</item>
<item>
<title>שאלה בנוגע ליעילות של list אל מול dic</title>
<dc:creator><![CDATA[112344asafh]]></dc:creator>
<category>שבוע 5</category>
<description><![CDATA[
<p>תחילה אומר שניסיתי ככל יכולתי ומקווה שהצלחתי להעביר את השאלה בלי להזכיר אף תרגיל ספציפי.</p>
<p>הרגע גמרתי את האחד מהתרגילים שהופיעו בשבועות הקודמים ואין מה להגיד המודלים האלו זה Game Changer.<br>
תרגיל זה שוב עורר בי שאלה שרציתי לכתוב כבר זמן רב, שאלה שלא נותנת מנוח לנפשי, קראתי כאן אשכולות קשורים אך תשובה מספקת עדיין לא קיבלתי. כדי לפתור את אחד מהתרגילים יש לבצע מספור למילים בצורה חכמה.<br>
ולתומי עד שנתקלתי בהפרשי הזמנים העצומים בין שתי השיטות חשבתי שמצאתי את הדרך האולטימטיבית למספור האיברים ברשימה בלי צורך לעבור על כולה כל פעם מחדש ברגע שנתקלים במילה חדשה.</p>
<p>האם ישנה אפשרות להסביר מדוע מתודה א כל כך לא יעילה לעומת מתודה ב? אחדד את השאלה ואומר שבשני המתודות אני עובר על הרשימה כולה רק פעם אחת, לכן מאיפה מגיע פער הזמנים העצום (במתודה א, שיניתי את פונקצייה count כך שלא תעבור כל פעם על כל הטקסט).<br>
,תודה מראש על ההתייחסות.<br>
.</p>
<blockquote>
<p><strong>מתודה א: – מיון בעזרת רשימה - צורה לא יעילה</strong></p>
</blockquote>
<pre><code class="lang-auto">my_list = ['a', 'a', 'a', 'b', 'b', 'c']
new_dic = {}
while my_list:
counting = 0
current = my_list[0]
while counting < len(my_list) and my_list[counting] == current:
counting += 1
new_dic[current] = counting
my_list = my_list[ counting :]
print(new_dic)
# {'a': 3, 'b': 2, 'c': 1}
</code></pre>
<p><img src="https://forums.pythonic.guru/uploads/default/original/2X/f/fff42947224699b3ad64e6c964f0d7b34ffd8716.png" alt="image" data-base62-sha1="AwgRODC2RjXniMfZwF7HzxHZ4JU" width="431" height="32"></p>
<blockquote>
<p><strong>מתודה ב: – מיון בעזרת מילון</strong></p>
</blockquote>
<pre><code class="lang-auto">my_list = ['a', 'a', 'a', 'b', 'b', 'c']
new_dic = {}
for word in my_list:
if word in new_dic:
new_dic[word] += 1
else:
new_dic[word] = 1
print(new_dic)
# {'a': 3, 'b': 2, 'c': 1}
</code></pre>
<p><img src="https://forums.pythonic.guru/uploads/default/original/2X/f/fa43bdac5b8bcc7c8ffdb5d5e3aa2c68477cd416.png" alt="image" data-base62-sha1="zHWv75Lf68EgQOrHXkTi7QYxhEG" width="356" height="32"></p>
<p><small>3 פוסטים - 2 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/list-dic/9173">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/list-dic/9173</link>
<pubDate>Sun, 15 Aug 2021 19:35:00 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9173</guid>
<source url="https://forums.pythonic.guru/t/list-dic/9173.rss">שאלה בנוגע ליעילות של list אל מול dic</source>
</item>
<item>
<title>בעיה עם העברת מספר בלתי מוגבל של פרמטרים עם כוכבית</title>
<dc:creator><![CDATA[112344asafh]]></dc:creator>
<category>שבוע 5</category>
<description><![CDATA[
<p>שלום רב, תחילה אומר שלא ראיתי התייחסות לעניין זה באשכול של שבוע 5.</p>
<p>במחברת 3 של שבוע זה לימדתם את היכולת להעביר מספר בלתי מוגבל של ארגומנטים שהערך ייכנס לפונקציה כtuple.<br>
א. לא ברור לי מדוע כאשר אני מעביר רק משתנה אחר שהוא iterable הוא הופך להיות tuple כשכל איבריו בצד אחד וישנו ערך ריק בצד שני. האם ישנה דרך אלגנטית לפתור בעיה זו?<br>
ב. שאלה כללית יותר באשר לשימוש בטכניקה זו, כאשר אני כותב את הקוד אני יודע כמה משתנים אני הולך להעביר לפונקציה לכן למה יש עניין להשתמש בשיטה זו.<br>
תודה מראש.</p>
<p></p><div class="lightbox-wrapper"><a class="lightbox" href="https://forums.pythonic.guru/uploads/default/original/2X/3/364cbf43de4ae9ce0d552fe852a5bfd2f9903025.png" data-download-href="https://forums.pythonic.guru/uploads/default/364cbf43de4ae9ce0d552fe852a5bfd2f9903025" title="image"><img src="https://forums.pythonic.guru/uploads/default/optimized/2X/3/364cbf43de4ae9ce0d552fe852a5bfd2f9903025_2_595x500.png" alt="image" data-base62-sha1="7Kmdecap59VO1FKPMW0C8kTb9Pf" width="595" height="500" srcset="https://forums.pythonic.guru/uploads/default/optimized/2X/3/364cbf43de4ae9ce0d552fe852a5bfd2f9903025_2_595x500.png, https://forums.pythonic.guru/uploads/default/original/2X/3/364cbf43de4ae9ce0d552fe852a5bfd2f9903025.png 1.5x, https://forums.pythonic.guru/uploads/default/original/2X/3/364cbf43de4ae9ce0d552fe852a5bfd2f9903025.png 2x" data-small-upload="https://forums.pythonic.guru/uploads/default/optimized/2X/3/364cbf43de4ae9ce0d552fe852a5bfd2f9903025_2_10x10.png"></a></div><p></p>
<p><small>8 פוסטים - 3 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/topic/9171">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/topic/9171</link>
<pubDate>Thu, 12 Aug 2021 17:41:39 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9171</guid>
<source url="https://forums.pythonic.guru/t/topic/9171.rss">בעיה עם העברת מספר בלתי מוגבל של פרמטרים עם כוכבית</source>
</item>
<item>
<title>מפענח הצפנים - צריך עזרה עם התרגיל גפ שנה אחרי</title>
<dc:creator><![CDATA[matan18]]></dc:creator>
<category>שבוע 2</category>
<description><![CDATA[
<p>שלום! יודע שעברו שנים מאז התרגיל, חזרתי לאחורה קצת כדי לחזור על הקורס מחדש כי התעורר בי חשק לשחק עם פייתון.<br>
התרגיל הזה שובר אותי כל פעם מחדש.<br>
אני יודע שבהמשך, עם לולאות והכל, הוא הופך להרבה יותר פשוט - אבל עכשיו, יש כל מיני דברים שאני פשוט לא מצליח. דברים קטנים ומעצבנים.</p>
<p>האם יש אפשרות להסבר מפורט ומלא לפתירת התרגיל? איזה פונקצי��ת עליי ליצור?</p>
<p>יש לי פונקציה שמחזירה לי כמה מספרים נכונים.</p>
<p>אני חושב שמה שאני מסתבך איתו יותר מהכל זה ההבנה של איך קוראים לפונקציות בתוך פונקציות אחרות? אם אני מגדיר פונקציה מסוימת כמשהו, לדוגמה:<br>
def func() = love</p>
<p>האם love קורא לפונקציה או רק מצביע על מה שהפונקציה מחזירה? אבל איך הפונקציה מחזירה משהו?<br>
בקיצור אני שואל איך אני קורא לפונקציה ששואלת מה הסיסמא הנכונה 3 פעמים בלי לולאות וכ’ו.</p>
<p>תודה!</p>
<p><small>15 פוסטים - 3 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/topic/9166">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/topic/9166</link>
<pubDate>Fri, 02 Jul 2021 16:24:29 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9166</guid>
<source url="https://forums.pythonic.guru/t/topic/9166.rss">מפענח הצפנים - צריך עזרה עם התרגיל גפ שנה אחרי</source>
</item>
<item>
<title>שימוש בcalendar</title>
<dc:creator><![CDATA[krauskas]]></dc:creator>
<category>שבוע 16</category>
<description><![CDATA[
<p>שלום לכולם,<br>
אשמח לדעת האם ישנו איזה לינק שבאמצעותו ניתן להשתמש בcalendar , או שחייבים להוריד את הקבצים בשביל להפעיל אותו?</p>
<p>תודה מראש</p>
<p><small>2 פוסטים - 2 משתתפים</small></p>
<p><a href="https://forums.pythonic.guru/t/calendar/9154">קריאת הנושא במלואו</a></p>
]]></description>
<link>https://forums.pythonic.guru/t/calendar/9154</link>
<pubDate>Sat, 27 Mar 2021 17:06:00 +0000</pubDate>
<discourse:topicPinned>No</discourse:topicPinned>
<discourse:topicClosed>No</discourse:topicClosed>
<discourse:topicArchived>No</discourse:topicArchived>
<guid isPermaLink="false">forums.pythonic.guru-topic-9154</guid>
<source url="https://forums.pythonic.guru/t/calendar/9154.rss">שימוש בcalendar</source>
</item>
</channel>
</rss>