title: How do I fix "x" is not accessed Pylance
body: <p>It says &quot;x&quot; is not accessed Pylance But I don't know why it used to work until now. If you can please help.</p>
  <pre><code>troll3=  [&quot;troll&quot; , &quot;ulikemen&quot; , &quot;someone-is-in-my-house&quot; , &quot;;/&quot;,&quot;amogsus&quot;]   
  
  @client.command()
  @commands.has_permissions(administrator=True)
  async def nuke(ctx):
      guild = ctx.guild
      await ctx.author.send(f'fake nuke command lol {ctx.author.mention}')
      for x in range(5):
          time.sleep(1)
          await ctx.send(f'[+] role: {(random.choice(troll3))} has been created')
      try:
          for channel in guild.channels:
              await ctx.send(f'channel: {channel.name} was deleted')
      except:
          await ctx.send('g')
  </code></pre>
  <p><img src="https://i.stack.imgur.com/yPPqw.png" alt="enter image description here" /></p>
  <p>I have fixed the error by changing X to _ which has made the code work properly.</p>
  <pre><code>troll3=  [&quot;troll&quot; , &quot;ulikemen&quot; , &quot;someone-is-in-my-house&quot; , &quot;;/&quot;,&quot;amogsus&quot;]   
      
      @client.command()
      @commands.has_permissions(administrator=True)
      async def nuke(ctx):
          guild = ctx.guild
          await ctx.author.send(f'fake nuke command lol {ctx.author.mention}')
          for _ in range(5): # This has been solved. I switched x to _ and it works now.
              time.sleep(1)
              await ctx.send(f'[+] role: {(random.choice(troll3))} has been created')
          try:
              for channel in guild.channels:
                  await ctx.send(f'channel: {channel.name} was deleted')
          except:
              await ctx.send('g')
  </code></pre>