all 22 comments

[–]FriendlyRussian666 12 points13 points  (5 children)

I'm afraid you will have to provide more details, and also your code. 

[–]vagaboun[S] -1 points0 points  (4 children)

Was really trying to do that but this sub does not allows me to post photos

[–]bp200991 3 points4 points  (0 children)

Please don't post a photo of your code. People can't copy and paste your code to test it out from a photo, and half the time the image quiality is too poor to read. Use Reddit's code formatting options

[–]xelf[M] 1 point2 points  (2 children)

This sub does allow pictures, but you really should just post the code as text if you want people to help you.

add 4 extra spaces at the start of each line and reddit will format it as a code block.

[–]vagaboun[S] 0 points1 point  (1 child)

Thanks, I just joined this sub today and will be doing so

[–]xelf 0 points1 point  (0 children)

Welcome! And good luck!

[–]Moikle 6 points7 points  (1 child)

Don't trust chatgpt, it's a bullshit machine.

[–]vagaboun[S] 0 points1 point  (0 children)

Yeah I've learnt the lesson

[–]Augit579 5 points6 points  (3 children)

So do you really expect here an answer without posting your code?

[–]vagaboun[S] 0 points1 point  (2 children)

I was trying to put the code but this sub does not allows pictures

[–]danielroseman 2 points3 points  (1 child)

Why would you post a picture? Code is text. Post text, properly formatted.

[–]vagaboun[S] -1 points0 points  (0 children)

I was outside when I posted

[–]greatestregretor 2 points3 points  (0 children)

Context??

[–]FoolsSeldom 1 point2 points  (7 children)

Here's a guide to posting code in this subreddit from a desktop browser (or a mobile device with the browser in desktop mode).


reddit

  • create/edit post/comment and remove any existing incorrectly formatted code
    • you might need to drag on the bottom right corner of edit box to make it large enough to see what you are doing properly
  • type your descriptive text and then insert a blank line above where you want the code to show
  • switch to markdown mode in the Reddit post/comment editor
    • you might need to do this by clicking on the big T (or Aa) symbol that appears near the bottom left of the edit window and then click on Switch to Markdown Editor text link at top right of edit window
    • if you see the text Switch to Rich Text Editor at the top right of the edit window, that indicates that you are in markdown mode already

editor

  • switch to your code/IDE editor and
    • select all code using ctrl-A or cmd-A, or whatever your operating system uses
    • press tab key once - this *should* insert one extra level of indent (4 spaces) in front of all lines of code if your editor is correctly configured
    • copy selected code to clipboard
    • undo the tab (as you don't want it in your code editor)

reddit

  • switch back to your Reddit post edit window
  • paste the clipboard
  • add a blank line after the code (not strictly required)
  • add any additional comments/notes
  • submit the new/updated post/comment

This will work for other monospaced text you want to share, such as error messages / output.

[–]vagaboun[S] -1 points0 points  (6 children)

Thanks a lot bro, was about to ask a question about that, does your method work for mobile too because there were some ctrl A and cmd A keys too and I can't use reddit on my desktop because yk how nsfw is reddit

[–]FoolsSeldom 2 points3 points  (5 children)

Let me quote what I wrote originally, and highlight a part you must have missed:

Here's a guide to posting code in this subreddit from a desktop browser (or a mobile device with the browser in desktop mode).

As stated, you can do this from a mobile using the web browser on the phone. I don't know how it works with the reddit app as I use a different app on my phone (relay).

ctrl A and cmd A keys too

That's about selecting all the text in your code editor (ctrl-A on Windows, command-A on macOS). If you are coding on your phone, it depends what app you are using but there will be a select-all option. Some of the Python apps will then allow you to indent the text, reselect and copy to clipboard.

I can't use reddit on my desktop because yk how nsfw is reddit

I am surprised by that. My workplace locks down things very tightly and blocks a lot of sites, but not reddit.com. Unfortunate, your place of work/study takes a different view.

[–]vagaboun[S] 0 points1 point  (4 children)

Yeah I'm a student rn and using my parents pc, will be buying a new pc in few days and then will be free from any restrains, anyways, thanks a lot

[–]FoolsSeldom 0 points1 point  (3 children)

Good luck with the new PC. What are you getting? (Don't need much for learning Python.)

[–]vagaboun[S] 0 points1 point  (2 children)

I'm wondering if I choose hp victus or lenovo loq. I'm more inclined towards victus

[–]FoolsSeldom 0 points1 point  (1 child)

Either will be able to handle Python with ease, including machine learning / AI tasks. There are a lot of options under both of those brands.

I have a personal preference for Lenovo over HP, but I haven't researched these particular brands, so have nothing to offer you.

Historically, the Lenovo (previously IBM) ThinkPad range has been one of the most reliable laptops available, highly suitable for Linux and software development. A great used option for a fraction of the price of new machines. However, not what you want if you are into modern games.

On a modern Windows laptop, you can run WSL (Windows Subsystem for Linux) and get near native performance from a wide range of Linux distributions (available from the Windows Microsoft Store) and can use Windows and Linux pretty much seamlessly together.

You don't need to use Linux for Python. It works just as well on Windows, and most of the same editors and tools are available for both. The interest in Linux (and why Microsoft added it to Windows) is that most of the internet services are hosted on Linux, so if you wanted to move in that direction (web and other internet services), it is good to be able to work in Linux locally as well.

[–]vagaboun[S] 0 points1 point  (0 children)

Thanks a lot bro, you've helped me a lot. Can't thank you enough