Temporal Shadow
@Aqtion
Frontend Dev + Competitive Coder (in Java)
Haven't been on replit for some time. Can you only make private repls with hacker plan, or does the regular plan offer this option?
It's simple! Translate to or from pig latin. Also for some reason you will get an error when opening the window in a new tab, not exactly sure why. Be
HTML, CSS, JS
hi guys. so basically im writing stuff to a .txt file. how do i make it so that i can keep the previous data instead of overwriting it?
Python
Muffinlavania Mark someone as the correct answer if it helped, hit the check mark next to the one that helped the most3 years ago
CodeLongAndPros Open it in append mode:
with open(filename, 'a') as f:
f.write("Spam and eggs")
`3 years ago
Bookie0 hey, maybe try this: https://stackoverflow.com/questions/22441803/python-write-to-file-without-overwriting-current-txt
basically you have to append so that what you writes gets added.
hope this helps! =)3 years ago
lol embed code is awesome. This is so cool. I'm pretty sure I can implement this and make a search and my own type of "youtube", leave suggestions on
HTML, CSS, JS
so i'm running my program and after it installs the packages it just does... nothing. Nothing prints (something is supposed to), and it just stays the
Python
so basically i'm making this thing, and when i try to use namechoice in firstStretch(), it just keeps on saying that namechoice is undefined. I have t
Python
ChezCoder global is for accessing variables while the code is in a function. You have to do it the other way around.
basically, here is an example:
This doesnt work
global foo
foo = "bar"
def baz():
print(foo)
This works
foo = "bar"
def baz():
global foo # this tells python that foo is outside of the function
print(foo)
`3 years ago
So i'm making a game where the events occur based on the days the user has progressed. however, I have trouble when i'm trying to save the number of d
Python
dfnk Pickle is a module in python that can save data locally!
let's start by importing this module, import pickle:
then lest make a variable x = 10.
Now we are going to save this data first make a save.dat file then put this in the python file,
save = open('save.dat', 'wb')
pickle.dump(x, save) # this will dump it into that file
save.close()
this will open the save.dat file in a variable!
then if you go to your save.dat file you will see lots of gibberish, this is because it saves it in a speci3 years ago
Bookie0 Well you can do like a variable:
days = 1
Then do the code, and at the end of the day,
days += 1
And this adds to the variable days one3 years ago
so basically if u text by text print an ascii, it looks pretty cool. tell me what you think.
Python
Aqtion lemme know if i should implement this on one of my projects, or if you want an upgraded version of this.3 years ago
DynamicSquid _ _ _ _ _ _ _ _ _ _
|_ _| | | | | | | | | | | | | | | |
| | | |_ _ | | | | _ _ _ | | _ _ | | _ _ _ | | |_ _ _ _ _ | | |
| | | '_ \ / | | / |/ \ / \/ | | |/ _ \ / _ \| |/ / | '/ _ \/ ` | | | | | | / / \ / _ \| | |
| | | | | | (| | | | (| | () | /\ \ | | () | () | < | | | / 3 years ago
i hope someone responds to this, cause my questions don't usually get answered on ask. I wanna know why the program is saying the function slimeClicka
HTML, CSS, JS
mwilki7 it looks like it didnt finish parsing the script.js file because you are missing a parenthesis on line 83 years ago
so i've been working on this repl, and i'm trying to increment day and print it for every new day, play the game to understand what i mean. However, d
Python
So i've been working on this node.js project, after looking at tutorials online and have made the server. However, when trying to use my original webs
Node.js
TheForArkLD app.get('/path/to/file',(req,res)=>{
res.sendfile(path.join(/idk here/))
})
~3 years ago
So for the website I am making, I included a little like system where the user can like and the website will alert them and stuff. I wanted to make th
HTML, CSS, JS
because of the new discussion on cycle farming, and upvote begging, i will change the text on this repl.
Python
this is a cool project. you don't have to upvote, just posting this here for my website im making.
still updating this though. i want to add differen
Python
Axrevyn You could change this:
import sys
import time
import random
to this:
import sys, time, random
`3 years ago
I'm working on a project in python that uses socket, and was wondering if anyone had a good explanation for it. I don't really understand it yet, and
I hit 100 cycles, and I really wanted to do a project for it. Any ideas? Preferably in Python.
ZacPlayz Try this:
Komdo Dragon
Komodo dragons
The Komodo dragon (Varanus komodoensis), also known as the Komodo monitor, is a species of lizard found in the Indonesian islands of Komodo, Rinca, Flores, Gili Motang, and Padar. A member of the monitor lizard family Varanidae, it is the largest living species of lizard, growing to a maximum length of 3 metres (10 ft) in rare cases and weighing up to approximately 70 kilograms (150 lb).
Their unusually large size has been attributed to island gig3 years ago
You seriously don't need to upvote this. I'm just a fan of the microwave burrito ad.
Python
So I was just looking over my projects and found my first one ever. By looking at this I can just see how much I've developed as a coder and how this
Python
This is something I worked on, with help from bootstrap for formatting, and basically just working out the js with others. Hope its nice. There are co
HTML, CSS, JS
DylanFelix Our pricing is very nice! Check out all of our items and email us if you have any questions regarding the stupidity of yourself, and we will gladly help you!
Made me smile.3 years ago
if this program seems confusing, it is fine. I just made this for fun on behalf of a friend. if you do understand it, then feel free to use it! Credit
Python
Aqtion in the comments, I would like to know how I can print this list horizontally without having to take the string value of it. I wanted to make it smooth like Your lottery numbers are: 24,37,39,40,35 for example.3 years ago