Skip to main content
More golfing
Source Link
Sherlock9
  • 12.3k
  • 1
  • 30
  • 68

Python 3, 8686 83 bytes

GIF to follow. Golfing suggestions welcome as this is still a little verbose. -3 bytes thanks to Flp.Tkc.

import time
i=1
while i:print("Loadingend="\rLoading... "+"/-\|"[i%4],end="\r");time.sleep(.25);i+=1

Python 3, 86 bytes

GIF to follow. Golfing suggestions welcome as this is still a little verbose.

import time
i=1
while i:print("Loading... "+"/-\|"[i%4],end="\r");time.sleep(.25);i+=1

Python 3, 86 83 bytes

GIF to follow. Golfing suggestions welcome as this is still a little verbose. -3 bytes thanks to Flp.Tkc.

import time
i=1
while i:print(end="\rLoading... "+"/-\|"[i%4]);time.sleep(.25);i+=1
Correcting the answer
Source Link
Sherlock9
  • 12.3k
  • 1
  • 30
  • 68

Python 3, 8186 bytes

GIF to follow. Golfing suggestions welcome as this is still a little verbose.

import time
i=1
while i:print("Loading... "+"/-\|"[i%4],end="\r");time.sleep(.25);i+=1

Python 3, 81 bytes

GIF to follow. Golfing suggestions welcome as this is still a little verbose.

import time
i=1
while i:print("Loading... "+"/-\|"[i%4],end="\r");time.sleep(.25);i+=1

Python 3, 86 bytes

GIF to follow. Golfing suggestions welcome as this is still a little verbose.

import time
i=1
while i:print("Loading... "+"/-\|"[i%4],end="\r");time.sleep(.25);i+=1
Source Link
Sherlock9
  • 12.3k
  • 1
  • 30
  • 68

Python 3, 81 bytes

GIF to follow. Golfing suggestions welcome as this is still a little verbose.

import time
i=1
while i:print("Loading... "+"/-\|"[i%4],end="\r");time.sleep(.25);i+=1