#๐Ÿ”’ Cant get my python to work, keeps erroring

20 messages ยท Page 1 of 1 (latest)

quasi field
#

Idk what to put here

stone currentBOT
#

@quasi field

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

quasi field
#

!paste

#
#import time
#import pyautogui
#import keyboard
#import asyncio

public class test {
    void static public main (String[] args) {
        while (1) {
            if (keyboard.is_pressed("pagedown")) {
                pyautogui.keyDown("ctrl"); 
                pyautogui.keyDown("v"); 
                pyautogui.keyUp("v"); 
                pyautogui.keyUp("ctrl"); 
                pyautogui.press("enter"); 
                time.sleep(0.5); 
                continue;
            }
            else {
                continue; 
            }
        }
    }
}
#

why my python not work?

autumn magnet
#

this looks like you're trying to write py as java syntax

quasi field
#

nah its python

autumn magnet
#

I bet it isn't

ocean dome
#

then everythings wrong

autumn magnet
#

unless it's a variation of python

#

it looks crooked ngl

quasi field
#

Im using the kotlin lib wih the cpp wrapper in python

faint coyote
#

This is not in fact python

quasi field
#

yeah this post is a joke

coarse shoal
autumn magnet
#

imports are python styled
classes and objects are java styled
while(1) that's illegal java syntax
and camel case brainmon

stone currentBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.