Discuss Scratch

Reev0102
Scratcher
1000+ posts

Python programming language

Chiroyce wrote:

Reev0102 wrote:

LOL Command prompt!! Terminal on mac works, try using powershell or the IDLE console.
OK


Prime minister of the page

Last edited by Reev0102 (Sept. 9, 2021 04:37:58)

mybearworld
Scratcher
1000+ posts

Python programming language

Reev0102 wrote:

Chiroyce wrote:

Reev0102 wrote:

LOL Command prompt!! Terminal on mac works, try using powershell or the IDLE console.
OK
That's very moist \U0001f60e

Signatures are the only place where assets links still work.
kccuber
Scratcher
1000+ posts

Python programming language

Reev0102 wrote:

download windows terminal from the microsoft store and use that, it has emoji support (you use windows 10, right?)


Made using Nord Theme & Inkscape
mybearworld
Scratcher
1000+ posts

Python programming language

kccuber wrote:

download windows terminal from the microsoft store and use that, it has emoji support (you use windows 10, right?)
Judging by the command prompt, yes.

Signatures are the only place where assets links still work.
roketH77
Scratcher
1000+ posts

Python programming language

How could I make a coloured output in python? I wanna make an ocular api thing. Mock-up:
Enter username:
>>>randomuser
Thier status is: random status with red dot
Do I also have to do anything special to use that character? Thanks!

Moved to reidling–
Chiroyce
Scratcher
1000+ posts

Python programming language

roketH77 wrote:

How could I make a coloured output in python?
https://pypi.org/project/colorama/

Try it out with this character (is it too small?)

Last edited by Chiroyce (Sept. 9, 2021 06:20:40)








April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
mybearworld
Scratcher
1000+ posts

Python programming language

roketH77 wrote:

Do I also have to do anything special to use that character? Thanks!
You can just use ● or \u25cf

Signatures are the only place where assets links still work.
roketH77
Scratcher
1000+ posts

Python programming language

Chiroyce wrote:

roketH77 wrote:

How could I make a coloured output in python?
https://pypi.org/project/colorama
It’s good, but I need something that can accept hex. (#fffff)

Moved to reidling–
Wei-ern_520
Scratcher
500+ posts

Python programming language

Why does this work??

input = input(“”)
print (input)

print (“True” if print(“True” if True else “False”))

Apparently, these are breaking my mind.

Last edited by Wei-ern_520 (Sept. 15, 2021 09:26:33)


Please consider checking out my suggestion ->here<-.

Hello, I’m Wei-ern_520, and I will randomly appear in your room! Just kidding, I make rpg engines.

I have no custom pfp, not because I don't know how to make one. I just don't know what suits me best, and I'm just too lazy and prefer sticking to simplicity. Or at least so. I also have the need to trip people with my profile picture. Just wait till it happens.

Fun fact: you don't clean your mess, you move it somewhere else. (Source: somewhere)

Also: Ooh, look at the cheese!
roketH77
Scratcher
1000+ posts

Python programming language

Wei-ern_520 wrote:

Why does this work?

input = input("")
print (input)
print ("True" if print("True" if True else "False"))

Apparently, these are breaking my mind.
Wdym

Moved to reidling–
miningsuperstar
Scratcher
1000+ posts

Python programming language

Wei-ern_520 wrote:

Why does this work??

input = input(“”)
print (input)

print (“True” if print(“True” if True else “False”))

Apparently, these are breaking my mind.
last one doesn't work

hi i'm miner, i like everywhere at the end of time, object shows, YTPMVs, sparta remixes, and coding

your mom
Wei-ern_520
Scratcher
500+ posts

Python programming language

miningsuperstar wrote:

Wei-ern_520 wrote:

Why does this work??

input = input(“”)
print (input)

print (“True” if print(“True” if True else “False”))

Apparently, these are breaking my mind.
last one doesn't work
Yeah I think I left out some stuff.

print (“True”if print(“True” if True else “False”) == “True” else “False”)

This returns True And False, does that mean you can print a print in a print?

Please consider checking out my suggestion ->here<-.

Hello, I’m Wei-ern_520, and I will randomly appear in your room! Just kidding, I make rpg engines.

I have no custom pfp, not because I don't know how to make one. I just don't know what suits me best, and I'm just too lazy and prefer sticking to simplicity. Or at least so. I also have the need to trip people with my profile picture. Just wait till it happens.

Fun fact: you don't clean your mess, you move it somewhere else. (Source: somewhere)

Also: Ooh, look at the cheese!
miningsuperstar
Scratcher
1000+ posts

Python programming language

i made a thing that can play pokemon hangman with you! it gives you it's guess, and you say if it's right or wrong, and it uses an optimized strategy! it also uses a list of pokemon separated by line breaks:
def quick(names):
guess = "e"
guesses = 0
print("how many blanks?")
length = int(input())
possible_words = names
possible_words = length_cut(possible_words, length) # this is done for data type conversion.
incorrect_guesses = []
correct_guesses = []
not_guessed_already = ["a", "b", 'c', "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r",
"s", "t", "u", "v", "w", "x", "y", "z", ]
while 1:
guesses += 1
print("guess %s" % guesses)
while 1:
print('''try to/i will guess %s
say 'quit' or "q" to stop and get a list of the guesses,
'yes' or 'y' to confirm it's correct, or
'no' or 'n' to confirm it's incorrect.''' % guess)
response = input().lower()
not_guessed_already.remove(guess)
if response == "quit" or response == "q":
print(possible_words)
break
elif response == "yes" or response == "y":
correct_guesses.append(guess)
break
elif response == "no" or response == "n":
incorrect_guesses.append(guess)
break
else:
print("invalid.")

if response == "quit" or response == "q":
break

print(len(possible_words))
print(possible_words)

possible_words = update_list(incorrect_guesses, correct_guesses, possible_words)
guess = evaluate_guess(possible_words, "abcdefghijklmnopqrstuvwxyz", not_guessed_already)

if len(possible_words) == 1:
print('''it's %s!''' % possible_words[0])
print("guesses: %s" % guesses)
input()
elif len(possible_words) < 7:
print(possible_words)

if len(possible_words) == 1:
break

return


def update_list(wrong_list, right_list, possible_list):
new_list = []
for possible_word in possible_list:
dont_add = False
for wrong_letter in wrong_list:
if wrong_letter in possible_word:
dont_add = True
break

if dont_add:
continue

should_add = True
for letter in right_list:
if letter not in possible_word:
should_add = False
break

if should_add:
new_list.append(possible_word)

return new_list


def evaluate_guess(possible_list, alphabet, not_guessed):
best_letter = "a"
best_length = 0
temp_list = []
for letter in alphabet:
for listed_word in possible_list:
if letter in listed_word and letter in not_guessed:
temp_list.append(listed_word)
transfer = letter
if len(temp_list) > best_length:
best_letter = transfer
best_length = len(temp_list)
temp_list.clear()

return best_letter


def length_cut(names, length):
new_names = []
for name in names:
name = name.lower().strip()
if len(name) == length:
new_names.append(name)
return new_names


print("please wait...")

with open('most_new.txt', 'r') as file:
pokelist = file.read()

pokelist = pokelist.split("\n")
pokelist.sort()
print("list converted.")
list(pokelist)
quick(pokelist)
and here's the list(call it “most_new”):
Bulbasaur 
Chikorita
Treecko
Turtwig
Victini
Chespin
Rowlet
Grookey
Ivysaur
Bayleef
Grovyle
Grotle
Snivy
Quilladin
Dartrix
Thwackey
Venusaur
Meganium
Sceptile
Torterra
Servine
Chesnaught
Decidueye
Rillaboom
Charmander
Cyndaquil
Torchic
Chimchar
Serperior
Fennekin
Litten
Scorbunny
Charmeleon
Quilava
Combusken
Monferno
Tepig
Braixen
Torracat
Raboot
Charizard
Typhlosion
Blaziken
Infernape
Pignite
Delphox
Incineroar
Cinderace
Squirtle
Totodile
Mudkip
Piplup
Emboar
Froakie
Popplio
Sobble
Wartortle
Croconaw
Marshtomp
Prinplup
Oshawott
Frogadier
Brionne
Drizzile
Blastoise
Feraligatr
Swampert
Empoleon
Dewott
Greninja
Primarina
Inteleon
Caterpie
Sentret
Poochyena
Starly
Samurott
Bunnelby
Pikipek
Skwovet
Metapod
Furret
Mightyena
Staravia
Patrat
Diggersby
Trumbeak
Greedent
Butterfree
Hoothoot
Zigzagoon
Staraptor
Watchog
Fletchling
Toucannon
Rookidee
Weedle
Noctowl
Linoone
Bidoof
Lillipup
Fletchinder
Yungoos
Corvisquire
Kakuna
Ledyba
Wurmple
Bibarel
Herdier
Talonflame
Gumshoos
Corviknight
Beedrill
Ledian
Silcoon
Kricketot
Stoutland
Scatterbug
Grubbin
Blipbug
Pidgey
Spinarak
Beautifly
Kricketune
Purrloin
Spewpa
Charjabug
Dottler
Pidgeotto
Ariados
Cascoon
Shinx
Liepard
Vivillon
Vikavolt
Orbeetle
Pidgeot
Crobat
Dustox
Luxio
Pansage
Litleo
Crabrawler
Nickit
Rattata
Chinchou
Lotad
Luxray
Simisage
Pyroar
Crabominable
Thievul
Raticate
Lanturn
Lombre
Budew
Pansear
Flabébé
Oricorio
Gossifleur
Spearow
Pichu
Ludicolo
Roserade
Simisear
Floette
Cutiefly
Eldegoss
Fearow
Cleffa
Seedot
Cranidos
Panpour
Florges
Ribombee
Wooloo
Ekans
Igglybuff
Nuzleaf
Rampardos
Simipour
Skiddo
Rockruff
Dubwool
Arbok
Togepi
Shiftry
Shieldon
Munna
Gogoat
Lycanroc
Chewtle
pikachu
Togetic
Taillow
Bastiodon
Musharna
Pancham
Wishiwashi
Drednaw
Raichu
Natu
Swellow
Burmy
Pidove
Pangoro
Mareanie
Yamper
Sandshrew
Xatu
Wingull
Wormadam
Tranquill
Furfrou
Toxapex
Boltund
Sandslash
Mareep
Pelipper
Mothim
Unfezant
Espurr
Mudbray
Rolycoly
Nidoran
Flaaffy
Ralts
Combee
Blitzle
Meowstic
Mudsdale
Carkol
Nidorina
Ampharos
Kirlia
Vespiquen
Zebstrika
Honedge
Dewpider
Coalossal
Nidoqueen
Bellossom
Gardevoir
Pachirisu
Roggenrola
Doublade
Araquanid
Applin
Nidoran
Marill
Surskit
Buizel
Boldore
Aegislash
Fomantis
Flapple
Nidorino
Azumarill
Masquerain
Floatzel
Gigalith
Spritzee
Lurantis
Appletun
Nidoking
Sudowoodo
Shroomish
Cherubi
Woobat
Aromatisse
Morelull
Silicobra
Clefairy
Politoed
Breloom
Cherrim
Swoobat
Swirlix
Shiinotic
Sandaconda
Clefable
Hoppip
Slakoth
Shellos
Drilbur
Slurpuff
Salandit
Cramorant
Vulpix
Skiploom
Vigoroth
Gastrodon
Excadrill
Inkay
Salazzle
Arrokuda
Ninetales
Jumpluff
Slaking
Ambipom
Audino
Malamar
Stufful
Barraskewda
Jigglypuff
Aipom
Nincada
Drifloon
Timburr
Binacle
Bewear
Toxel
Wigglytuff
Sunkern
Ninjask
Drifblim
Gurdurr
Barbaracle
Bounsweet
Toxtricity
Zubat
Sunflora
Shedinja
Buneary
Conkeldurr
Skrelp
Steenee
Sizzlipede
Golbat
Yanma
Whismur
Lopunny
Tympole
Dragalge
Tsareena
Centiskorch
Oddish
Wooper
Loudred
Mismagius
Palpitoad
Clauncher
Comfey
Clobbopus
Gloom
Quagsire
Exploud
Honchkrow
Seismitoad
Clawitzer
Oranguru
Grapploct
Vileplume
Espeon
Makuhita
Glameow
Throh
Helioptile
Passimian
Sinistea
Paras
Umbreon
Hariyama
Purugly
Sawk
Heliolisk
Wimpod
Polteageist
Parasect
Murkrow
Azurill
Chingling
Sewaddle
Tyrunt
Golisopod
Hatenna
Venonat
Slowking
Nosepass
Stunky
Swadloon
Tyrantrum
Sandygast
Hattrem
Venomoth
Misdreavus
Skitty
Skuntank
Leavanny
Amaura
Palossand
Hatterene
Diglett
Unown
Delcatty
Bronzor
Venipede
Aurorus
Pyukumuku
Impidimp
Dugtrio
Wobbuffet
Sableye
Bronzong
Whirlipede
Sylveon
Type: Null
Morgrem
Meowth
Girafarig
Mawile
Bonsly
Scolipede
Hawlucha
Silvally
Grimmsnarl
Persian
Pineco
Aron
Mime Jr.
Cottonee
Dedenne
Minior
Obstagoon
Psyduck
Forretress
Lairon
Happiny
Whimsicott
Carbink
Komala
Perrserker
Golduck
Dunsparce
Aggron
Chatot
Petilil
Goomy
Turtonator
Cursola
Mankey
Gligar
Meditite
Spiritomb
Lilligant
Sliggoo
Togedemaru
Sirfetch'd
Primeape
Steelix
Medicham
Gible
Basculin
Goodra
Mimikyu
Mr. Rime
Growlithe
Snubbull
Electrike
Gabite
Sandile
Klefki
Bruxish
Runerigus
Arcanine
Granbull
Manectric
Garchomp
Krokorok
Phantump
Drampa
Milcery
Poliwag
Qwilfish
Plusle
Munchlax
Krookodile
Trevenant
Dhelmise
Alcremie
Poliwhirl
Scizor
Minun
Riolu
Darumaka
Pumpkaboo
Jangmo-o
Falinks
Poliwrath
Shuckle
Volbeat
Lucario
Darmanitan
Gourgeist
Hakamo-o
Pincurchin
Abra
Heracross
Illumise
Hippopotas
Maractus
Bergmite
Kommo-o
Snom
Kadabra
Sneasel
Roselia
Hippowdon
Dwebble
Avalugg
Tapu Koko
Frosmoth
Alakazam
Teddiursa
Gulpin
Skorupi
Crustle
Noibat
Tapu Lele
Stonjourner
Machop
Ursaring
Swalot
Drapion
Scraggy
Noivern
Tapu Bulu
Eiscue
Machoke
Slugma
Carvanha
Croagunk
Scrafty
Xerneas
Tapu Fini
Indeedee
Machamp
Magcargo
Sharpedo
Toxicroak
Sigilyph
Yveltal
Cosmog
Morpeko
Bellsprout
Swinub
Wailmer
Carnivine
Yamask
Zygarde
Cosmoem
Cufant
Weepinbell
Piloswine
Wailord
Finneon
Cofagrigus
Diancie
Solgaleo
Copperajah
Victreebel
Corsola
Numel
Lumineon
Tirtouga
Hoopa
Lunala
Dracozolt
Tentacool
Remoraid
Camerupt
Mantyke
Carracosta
Volcanion
Nihilego
Arctozolt
Tentacruel
Octillery
Torkoal
Snover
Archen
Buzzwole
Dracovish
Geodude
Delibird
Spoink
Abomasnow
Archeops
Pheromosa
Arctovish
Graveler
Mantine
Grumpig
Weavile
Trubbish
Xurkitree
Duraludon
Golem
Skarmory
Spinda
Magnezone
Garbodor
Celesteela
Dreepy
Ponyta
Houndour
Trapinch
Lickilicky
Zorua
Kartana
Drakloak
Rapidash
Houndoom
Vibrava
Rhyperior
Zoroark
Guzzlord
Dragapult
Slowpoke
Kingdra
Flygon
Tangrowth
Minccino
Necrozma
Zacian
Slowbro
Phanpy
Cacnea
Electivire
Cinccino
Magearna
Zamazenta
Magnemite
Donphan
Cacturne
Magmortar
Gothita
Marshadow
Eternatus
Magneton
Porygon2
Swablu
Togekiss
Gothorita
Poipole
Kubfu
Farfetch'd
Stantler
Altaria
Yanmega
Gothitelle
Naganadel
Urshifu
Doduo
Smeargle
Zangoose
Leafeon
Solosis
Stakataka
Zarude
Dodrio
Tyrogue
Seviper
Glaceon
Duosion
Blacephalon
Regieleki
Seel
Hitmontop
Lunatone
Gliscor
Reuniclus
Zeraora
Regidrago
Dewgong
Smoochum
Solrock
Mamoswine
Ducklett
Meltan
Glastrier
Grimer
Elekid
Barboach
Porygon-Z
Swanna
Melmetal
Spectrier
Muk
Magby
Whiscash
Gallade
Vanillite
Calyrex
Shellder
Miltank
Corphish
Probopass
Vanillish
Wyrdeer
Cloyster
Blissey
Crawdaunt
Dusknoir
Vanilluxe
Basculegion
Gastly
Raikou
Baltoy
Froslass
Deerling
Haunter
Entei
Claydol
Rotom
Sawsbuck
Gengar
Suicune
Lileep
Uxie
Emolga
Onix
Larvitar
Cradily
Mesprit
Karrablast
Drowzee
Pupitar
Anorith
Azelf
Escavalier
Hypno
Tyranitar
Armaldo
Dialga
Foongus
Krabby
Lugia
Feebas
Palkia
Amoonguss
Kingler
Ho-oh
Milotic
Heatran
Frillish
Voltorb
Celebi
Castform
Regigigas
Jellicent
Electrode
Kecleon
Giratina
Alomomola
Exeggcute
Shuppet
Cresselia
Joltik
Exeggutor
Banette
Phione
Galvantula
Cubone
Duskull
Manaphy
Ferroseed
Marowak
Dusclops
Darkrai
Ferrothorn
Hitmonlee
Tropius
Shaymin
Klink
Hitmonchan
Chimecho
Arceus
Klang
Lickitung
Absol
Klinklang
Koffing
Wynaut
Tynamo
Weezing
Snorunt
Eelektrik
Rhyhorn
Glalie
Eelektross
Rhydon
Spheal
Elgyem
Chansey
Sealeo
Beheeyem
Tangela
Walrein
Litwick
Kangaskhan
Clamperl
Lampent
Horsea
Huntail
Chandelure
Seadra
Gorebyss
Axew
Goldeen
Relicanth
Fraxure
Seaking
Luvdisc
Haxorus
Staryu
Bagon
Cubchoo
Starmie
Shelgon
Beartic
Mr. Mime
Salamence
Cryogonal
Scyther
Beldum
Shelmet
Jynx
Metang
Accelgor
Electabuzz
Metagross
Stunfisk
Magmar
Regirock
Mienfoo
Pinsir
Regice
Mienshao
Tauros
Registeel
Druddigon
Magikarp
Latias
Golett
Gyarados
Latios
Golurk
Lapras
Kyogre
Pawniard
Ditto
Groudon
Bisharp
eevee
Rayquaza
Bouffalant
Vaporeon
Jirachi
Rufflet
Jolteon
deoxys
Braviary
Flareon
Vullaby
Porygon
Mandibuzz
Omanyte
Heatmor
Omastar
Durant
Kabuto
Deino
Kabutops
Zweilous
Aerodactyl
Hydreigon
Snorlax
Larvesta
Articuno
Volcarona
Zapdos
Cobalion
Moltres
Terrakion
Dratini
Virizion
Dragonair
Tornadus
Dragonite
Thundurus
Mewtwo
Reshiram
Mew
Zekrom
Landorus
Kyurem
Keldeo
Meloetta
Genesect
[/code]

hi i'm miner, i like everywhere at the end of time, object shows, YTPMVs, sparta remixes, and coding

your mom
roketH77
Scratcher
1000+ posts

Python programming language

Cool project info thing:
#All data based off scratchDB by datonelefty
import requests
projId = input("Project id?\n>>>")
response = requests.get(str("https://scratchdb.lefty.one/v3/project/info/" + projId))
projectInfo = response.json()
#print(projectInfo)
print("\nProject Title:" , projectInfo["title"])
print("Is public:" , str(projectInfo["public"]))
username = projectInfo["username"] #Saved so we can get user information and get ocular data (Coming "soon")
print("\nAuthor's Username:" , username)
print("\nInstructions:" , projectInfo["instructions"])
print("\nNotes and Creds:" , projectInfo["description"])
print("\nComments disallowed:" , str(projectInfo["comments_allowed"]))
stats = projectInfo["statistics"]
print("\nLoves:" , str(stats["loves"]))
print("Faves:" , str(stats["favorites"]))
print("Views:" , str(stats["views"]))
print("Comments:" , str(stats["comments"]))
metadata = projectInfo["metadata"]
print("\nVersion:" , metadata["version"])
print("Block count:" , metadata["blocks"])
print("Variable count:" , metadata["variables"])
print("Costume count:" , metadata["costumes"])
remix = projectInfo["remix"]
print("\nRemix parent:" , str(remix["parent"]))
print("Remix root:" , str(remix["root"]))

Moved to reidling–
mybearworld
Scratcher
1000+ posts

Python programming language

Wei-ern_520 wrote:

input = input("")
print (input)
You can name variables “input” or “print” if you want.

Last edited by mybearworld (Sept. 16, 2021 17:54:38)


Signatures are the only place where assets links still work.
Chiroyce
Scratcher
1000+ posts

Python programming language

roketH77 wrote:

username = projectInfo #Saved so we can get user information and get ocular data (Coming “soon”)
Too late. https://scratch.mit.edu/discuss/topic/542409/







April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
dhuls
Scratcher
1000+ posts

Python programming language

Help, this is broken
https://scratch.mit.edu/projects/557635039/
import os
try:
    from scratchclient import ScratchSession
except ModuleNotFoundError:
    os.system('pip install scratchclient')
os.system('clear')
from scratchclient import ScratchSession
import time
session = ScratchSession(haha, nope)
connection = session.create_cloud_connection(557635039)
while True:
    connection.set_cloud_variable("loves", session.get_project(557635039).love_count)
    time.sleep(0.1)
    connection.set_cloud_variable("faves", session.get_project(557635039).favorite_count)
    time.sleep(0.1)
    connection.set_cloud_variable("views", session.get_project(557635039).view_count)
    time.sleep(0.1)
    connection.set_cloud_variable("activityCheck", int(connection.get_cloud_variable("activityCheck")) + 1)
    time.sleep(1)
Run from my laptop
mrcoat
Scratcher
100+ posts

Python programming language

dhuls wrote:

Help, this is broken
https://scratch.mit.edu/projects/557635039/
Run from my laptop

What is the error message?

My cartoon
Watch My Show!
I was gonna put an image of the studio but it didn't work.

Cool thing I made
when [Awesomeness v] > (100)
forever
play sound [Victory v] until done
set rotation style [The best style v]
go to [The party v]
end
dhuls
Scratcher
1000+ posts

Python programming language

mrcoat wrote:

dhuls wrote:

Help, this is broken
https://scratch.mit.edu/projects/557635039/
Run from my laptop

What is the error message?
The issue is that it doesn't update once the project is loaded.
mrcoat
Scratcher
100+ posts

Python programming language

dhuls wrote:

mrcoat wrote:

dhuls wrote:

Help, this is broken
https://scratch.mit.edu/projects/557635039/
Run from my laptop

What is the error message?
The issue is that it doesn't update once the project is loaded.
Seems like it's working to me I think the problem is that the api doesn't get updated for a few minutes.

Last edited by mrcoat (Sept. 18, 2021 17:12:54)


My cartoon
Watch My Show!
I was gonna put an image of the studio but it didn't work.

Cool thing I made
when [Awesomeness v] > (100)
forever
play sound [Victory v] until done
set rotation style [The best style v]
go to [The party v]
end

Powered by DjangoBB