Skip to content
Sign UpLog In
Profile icon

Ofir Liron

@OfirLiron
Zalman Aran
Repls
Community
OfirLiron
OfirLiron
shared a Post
2 years ago
how to create list of live nodes in my lan
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
OfirLiron
OfirLiron
shared a Post
3 years ago
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?
SumEven
Java
SixBeeps
SixBeeps
It looks like you fixed it?3 years ago
OfirLiron
OfirLiron
shared a Post
3 years ago
I copied this program from inteliJ to ease share, but something is wrong, I don't see what it is
SumEven
Java
seanlnge
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
OfirLiron
OfirLiron
shared a Post
3 years ago
Hi I am new to repl with JAVA, and like to uderstand how to work with main and seperated class files
JAVA1
Java
SixBeeps
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
OfirLiron
OfirLiron
shared a Post
3 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
enumarate example
Python
TomBlackburn
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
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
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
OfirLiron
OfirLiron
shared a Post
3 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
hangman_show_word
Python
Dart
Dart
If you assign your input to a variable like e = input() oldlettersguessed = oldlettersguessed + e `3 years ago
OfirLiron
OfirLiron
shared a Post
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
check_hangman_1
Python
CircuitSacul
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
OfirLiron
OfirLiron
shared a Post
3 years ago
I am not sure why I get None if i type sort??? I should get sorted list from the text file
9.1.2
Python
ash15khng
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
OfirLiron
OfirLiron
shared a Post
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?
9.1.1_1
Python
Joanie55
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
Kai_Justice
Kai_Justice
More info here VVVV Example Repl :https://repl.it/@Kai_Justice/TESTO3 years ago
OfirLiron
OfirLiron
shared a Post
3 years 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
open_file_test
Python
SixBeeps
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
ash15khng
The program works? There's no print statement so the console is empty. The files get edited correctly too.3 years ago
a5rocks
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
OfirLiron
OfirLiron
shared a Post
3 years ago
How can I add picture to Python turule project? whre should I keep it ?
E-Sheep
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
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
OfirLiron
OfirLiron
shared a Post
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
ulisesquispe
ulisesquispe
ddd9 months ago
OfirLiron
OfirLiron
shared a Post
3 years ago
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
OfirLiron
OfirLiron
shared a Post
3 years ago
Hi , I have tried to run simple Turtle program. but somthing went wrong. can I repl, Turtle? Thanks
Turtle-1
Python
RyanGrizzard
RyanGrizzard
bruh3 years ago
vedprad1
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
OfirLiron
OfirLiron
shared a Post
3 years ago
How can I copy paste code from reple to Notepadd or Word
Danish-SyazwanS
Danish-SyazwanS
https://vt.tiktok.com/ZSdU8au3n/9 months ago
SyahrulHidayat7
SyahrulHidayat7
Bio data1 year ago
lawsonlam07
lawsonlam07
Ctrl + C , Ctrl + V2 years ago