0

Listing python3

I want to make a list of all my friend name by absence number so when the absence is 1 it call for my friend with the absence number of 1 but i want to make the list is a string(my friend do not understand basic of coding) so they can't just change they're name from the list

4th Apr 2020, 7:06 AM
CutieRei
CutieRei - avatar
13 Answers
+ 8
You can save the list in a seperate file.
4th Apr 2020, 8:17 AM
Sebastian Keßler
Sebastian Keßler - avatar
+ 6
u could encrypt the names
4th Apr 2020, 7:36 AM
Oma Falk
Oma Falk - avatar
+ 3
Gacha Dante Rei - - >ier-->jds
4th Apr 2020, 9:03 AM
Oma Falk
Oma Falk - avatar
+ 1
I don't really understand. Can u give an example please?
4th Apr 2020, 7:14 AM
Oma Falk
Oma Falk - avatar
0
Data = ["Danang","Adit Zandra","Rei","Andhira","Anggun","Nanu","Bagus","Bintang","Cathy","Felin","Faiz","Hamzah","Pipit","Amel","Kevin","Keyla","Sisil","Lala","Adi","Ferinur","Rasya","Noval","Fachri","Adit Pratama","Fadhil","Iqbal","Nabila","Nafisah","Najwa","Naura","Novita","Neta","Tristan","Aldo","Sera","Silvia","Sofi","Titan","Fahmi"] i want the list not visible as a string or maybe hide the list
4th Apr 2020, 7:18 AM
CutieRei
CutieRei - avatar
0
Oma Falk how???
4th Apr 2020, 8:51 AM
CutieRei
CutieRei - avatar
0
Gacha Dante Can you give an example of the output you are after?
4th Apr 2020, 8:56 AM
Rik Wittkopp
Rik Wittkopp - avatar
0
Gacha Dante Are you trying to create a function where your friends indicate if they are present, which creates a list of present friends from your list of total friends
4th Apr 2020, 8:58 AM
Rik Wittkopp
Rik Wittkopp - avatar
0
Rik Wittkopp uhh no i want to make the code know that if my friend input they're absence number it will show they're name ex: absence:1 ==Name: Danang Oma Falk i dont what it means by Rei -->ier-->jds all i know is that ier is reversed
4th Apr 2020, 11:54 AM
CutieRei
CutieRei - avatar
0
Gacha Dante Ok buddy Here is a little code which may help you develop something bigger. I am using a while loop so your friends can input their status, which will create an updated list of Absent Friends. This loop will terminate when 'exit' is entered. I have used a dictionary to capture the names of friends and assigned them a 4 digit code (birthday) When the birthday is entered, the name is indexed from the dictionary and appended to a list called Absent. This list is then printed showing their names. Remember, in Sololearn, all inputs must happen during the submit prompt. https://code.sololearn.com/c8zVo0ZKEv5J/?ref=app
4th Apr 2020, 9:45 PM
Rik Wittkopp
Rik Wittkopp - avatar
0
Didn't understand what u want
5th Apr 2020, 8:35 PM
youcef demdoum
youcef demdoum - avatar
0
Wants to hide everyone in the list
15th Dec 2020, 5:23 PM
Antonio Fuller
Antonio Fuller - avatar