Skip to content

Python requests

Featured Replies

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

  • 3 months later...

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

 

How about no. Learn python. We're not here to hold your hand.

There is nothing much to explain actually. Which line are you having trouble with, specifically?

Guys, don't expect an answer, StarSCreams is bumping all old topics (yesterday bumped 20-30 topics).

 

Check post date.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.