Ofir Liron
@OfirLiron
Zalman Aran
Hi,
I am tiring to create list of live nodes in my lan with the script
TODO: This is a quick hack to retrieve the results
of the ping, you should pro
Hi, This program should count the sum of even digits,
When number if fully comprised from even digits, I get wrong answer.
I don't see the reason?
Java
I copied this program from inteliJ to ease share, but something is wrong, I don't see what it is
Java
seanlnge oh you capitalized the .java in Even.Java.
change Even.Java to Even.java in the program files tab on the side
just a little capitalization error lol3 years ago
Hi I am new to repl with JAVA, and like to uderstand how to work with main and seperated class files
Java
SixBeeps You can add files by clicking this button:
image
Just a reminder, however, your class names have to match your file names. For example, if you have a class called PlayerManager, it has to be in a file called PlayerManager.java3 years ago
Hi,
I want to hold the previous list I guessed, for example for the word "banana" if i will guess b,a,n then the list is completed.
Currently, every g
Python
TomBlackburn Simply move a = list(b) outside of the while loop, you are overwriting the list of guessed letters each time the loop runs. I've fixed the code and added comments where improvements have been made
(https://repl.it/@TomBlackburn/enumarate-example)
replacing the main loop with a for loop removes the
need for this variable
d=0
these variables only need to be assigned once
move them outside the loop
c=[]
b="__"
a=list(b)
secret_word="banana"
secretlist=list(secretword)
this should really be a fo3 years ago
Dart @MrEconomical i deleted his dupe post so if you want to re write your answer on this one you can :) (this post was not as sloppy)3 years ago
Dart Please don’t post the same question multiple times! If you wait you will most likely get an answer to your question! -Dart3 years ago
Hi,
I am trying to write function, showing the guessed word, There is variable called word_letters : list need to hold the letters guessed so far.
It
Python
Dart If you assign your input to a variable like
e = input()
oldlettersguessed = oldlettersguessed + e
`3 years ago
The condition on line 13 should return False when the letter guessed is in [old letter guessed], however although I send the argument "oldletterguess
Python
CircuitSacul Here's what you can do. Define your variables at the top of your code, like
and any other variables you have.
Then, when you use them inside of a function, do this instead:
def my_function():
global oldletterguessed #Put this line at the top of your function.
This tells Python that you want the variable to update outside fo the function. Otherwise, the variable will stay inside the function, so to speak.
Hope this helps3 years ago
I am not sure why I get None if i type sort???
I should get sorted list from the text file
Python
ash15khng .sort() doesn't return a list, it modifies the original list. So you can either use b = sorted(a); print(b) or a.sort; print(a).3 years ago
Hi,
I have created two empty text files, and functions to check if the content is equal, the results is False but the files equal.
What do I do wrong?
Python
Joanie55 I recommend them if you're looking for practice questions. It is good to hire help with dissertation online. As they do not guarantee the questions are up to date, I would not recommend using them for practice exam questions; you will be out the exam fee as they only refund what you paid for their product.1 year ago
https://repl.it/@OfirLiron/write1
Hi i am trying to write text file with repl. there is error messege, and I can see the files open under the files s
Python
SixBeeps I'm guessing that you're expecting the files on your own computer to be changed. That will not work, though, because Repl.it is a website and not a program so you are unable to edit local files.3 years ago
ash15khng The program works? There's no print statement so the console is empty. The files get edited correctly too.3 years ago
a5rocks What do you mean "nothing happens"? I can see the written file contents, what more do you expect the program to do?3 years ago
How can I add picture to Python turule project?
whre should I keep it ?
E-Sheep Unfortunately, you can't add pictures in repl version python with turtle
But there is a way to add pictures in python on a computer, which I'm still quite confused about3 years ago
Vandesm14 You'd need a pygame repl to add images via python. The thing is, pygame is currently broken on repl.it, so I suggest waiting until they fix it to work on any images with python.3 years ago
https://repl.it/teacher/assignments/3812248/edit
Hi, How do I open python turtle for my students?
It seems not working with turtle mode
Ofir
Hi
I can't find whats wrong with line 7.
I want to generate new string based on thr original string, thr new string should begin after the first '@' t
Python
Hi ,
I have tried to run simple Turtle program. but somthing went wrong.
can I repl, Turtle?
Thanks
Python
vedprad1 You are using a Python repl, and you can't use Turtle with that.
You have to use a Turtle repl: https://repl.it/languages/python_turtle
If this answers your question, please check the checkmark on the left side of this message. Thanks and Good Luck!3 years ago
How can I copy paste code from reple to Notepadd or Word