14 תשובות
a2 = input("") q
שואל השאלה:
בבקשהה
שואל השאלה:
להראות את כל הקוד? אני מנסה כאילו לעשות קוד שבוחן על מילים אין לי איך להסביר
שואל השאלה:
neelc
לא עובד
שואל השאלה:
import random
v1=["leave","let","lie","light","lose","make","mean","meet","pay","put","read","ride","ring","rise","run","say","see","sell","send","set","shake","show","shut","sing","sit","sleep","speak","spend","stand","steal","swim","take","teach","tell","think","undarstand","wake","wear","win","write","throw","sweep"]
v2=["left","let","lay","lit","lost","made","meant","met","paid","put","read","rode","rang","rose","ran","said","saw","sold","sent","set","shook","showed","shut","sang","sat","slept","spoke","spent","stood","stole","swam","took","taught","told","thought","understood","woke","wore","won","wrote","threw","swept"]
v3=["left","let","lain","lit","lost","made","meant","met","paid","put","read","ridden","rung","risen","run","said","seen","sold","sent","set","shaken","shown","shut","sung","sat","slept","spoken","spent","stood","stolen","swum","taken","tought","told","thought","understood","woken","worn","won","written","thrown","swept"]
for i in range (41):
randomy=(random.randint(0,41))
print("the world",(v1[randomy])
a2=str(input())
if a2==(v2[randomy]):
print("correct")
a3=input("v3?")
if a2==(v3[randomy]):
print("correct")
היית יאומרת שקצת ארוך אבל אנ לא כל כך יודעת מה עשיתי כאן כאילךו אני כן
וכאילו סטיפס הופך את הכל
שואל השאלה:
בבקשה תענו
קחי תיקנתי לך

import random

v1 = ["leave", "let", "lie", "light", "lose", "make", "mean", "meet", "pay", "put", "read", "ride", "ring", "rise",
"run", "say", "see", "sell", "send", "set", "shake", "show", "shut", "sing", "sit", "sleep", "speak", "spend",
"stand", "steal", "swim", "take", "teach", "tell", "think", "undarstand", "wake", "wear", "win", "write", "throw",
"sweep"]
v2 = ["left", "let", "lay", "lit", "lost", "made", "meant", "met", "paid", "put", "read", "rode", "rang", "rose", "ran",
"said", "saw", "sold", "sent", "set", "shook", "showed", "shut", "sang", "sat", "slept", "spoke", "spent",
"stood", "stole", "swam", "took", "taught", "told", "thought", "understood", "woke", "wore", "won", "wrote",
"threw", "swept"]
v3 = ["left", "let", "lain", "lit", "lost", "made", "meant", "met", "paid", "put", "read", "ridden", "rung", "risen",
"run", "said", "seen", "sold", "sent", "set", "shaken", "shown", "shut", "sung", "sat", "slept", "spoken",
"spent", "stood", "stolen", "swum", "taken", "tought", "told", "thought", "understood", "woken", "worn", "won",
"written", "thrown", "swept"]

for i in range(41):
randomy = (random.randint(0, 41))

print("the world", (v1[randomy]))
a2 = input()
if a2 == (v2[randomy]):
print("correct")
a3 = input("v3?")
if a2 == (v3[randomy]):
print("correct")
אנונימי
שואל השאלה:
a2=string(input())
ככה? כי זה עדיין אל עובד ואין לי מושג למה
string*
אנונימי
תוסיפי syring בסוגריים
שואל השאלה:
file "<string>", line 15
randomy = (random.randint(0, 41))
^
indentationerror: expected an indented block
מה זה
שואל השאלה:
יואוו זה עובד תודהה
שואל השאלה:
וממש תודהה
תוסיפי tab