28 января 2021
Halimat ChisomHi guys.
I'm on Day 2 here.
I don't think I fully understand the "input" function.
And how long is a code supposed to run for?
It just takes user data and it runs once
WorldMakerIf the length is always the same, you can do it with a condition inside a loop and remove/replace the characters as you desire...
I just loop once and checked two consecutive index wether they are 56(substring) or not if yes then I fill those locations with "7" so at the end I will have new string "********77****7*" later I had looped one more time and created new string without 7.. this way I was able to crack it....but
AsabenehIt just takes user data and it runs once
It's been telling me "Code is already running".
I don't understand what that means
I think the problem started when I used the input... I'm probably using it wrong.
Help please.
I'll send a screenshot
Halimat ChisomI think the problem started from that purple line.
I recommend you to use terminal, because we can't input sty in output
Halimat ChisomI'm getting the same thing.
It's stuck after the input
Nothing goes wrong. After the input, the program is waiting for you to type the radius. Do it and press Enter to continue.
WorldMakerPlease also delete line 48. In a file, it's useless.
Oh...
I got it now.
But what about the instruction that said "take radius as user input and calculate the area"?
Halimat ChisomOh...
I got it now.
But what about the instruction that said "take radius as user input and calculate the area"?
radius = int(input('Enter radius: '))
Halimat ChisomOh...
I got it now.
But what about the instruction that said "take radius as user input and calculate the area"?
Sorry. I was very busy.
Understand that when you use input(), you actually order Python to capture an info typed by the user... You should notice that input(message) will display the message that you put into its brackets to invite user to enter a value. To be able to use this value, you have to store it in a variable like there:
pseudo = input("Enter your username: ")
WorldMakerSorry. I was very busy.
Understand that when you use input(), you actually order Python to capture an info typed by the user... You should notice that input(message) will display the message that you put into its brackets to invite user to enter a value. To be able to use this value, you have to sto
Thank you.
I really appreciate
id 330919784Hello!
My task is
Create an acronym or an abbreviation for the name 'Coding For All'.
My code:
company = "Coding For All"
print(company[0] + company[7] + company[11])
Is there another good way to create an acronym?
Use the split function, that'll give you an array, you can loop through and add the 0 index to the abbreviation variable, that way you don't have to know the position of all the letters