Jump to content
  • 0

Python requests


Balala

Question

I want to know for what this responsible and what it do? Each line plz.

 

I try to write a Quest on Python

 

question = 1 

  quiz = st.get("quiz")

  answers = st.getInt("answers")

  if answers == 7 :

    questions = quiz.split()

    index = st.getRandom(len(questions) - 1)

    question = questions[index]

    if len(questions) > 10 - answers :

      questions[index] = questions[-1]

      del questions[-1]

    st.set("quiz", " ".join(questions))

    htmltext = "419_q" + str(question) + ".htm"

    return htmltext

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...