+ 2

Hey! There is any exercise so that I can improve my coading skill.

30th May 2017, 5:14 PM
Pranjal soni
Pranjal soni - avatar
10 Réponses
31st May 2017, 3:50 PM
Pranjal soni
Pranjal soni - avatar
+ 6
Challenges are made to exercise
30th May 2017, 5:19 PM
Sachin Artani
Sachin Artani - avatar
+ 2
Hi Pranjal, As Sachin stated, challenges are made to exercise. Furthermore, practicing will allow you to easily advance your ability to code programs using the Python3 language. Luckily, I have few challenges to offer you- send me the source code of each challenge for reviewal. Here's the list: Beginner: 1) Login prompt: Contrive a script that will ask the user to enter a username and a password. If the user provides incorrect password then the program will print that the password is incorrect. However, if the password submitted is correct then the program will print that the password is correct. ---Intermediate--- *Bonus 1: The program will count attempts that were made by the user to enter the correct password(incorrect password entered.) *Bonus 2: If the password entered is correct then the program will print the password and an exclamation mark after it and then repeat the password three times. Good luck, AlexLSD.
30th May 2017, 6:09 PM
AlexLSD
AlexLSD - avatar
+ 2
Hey Alex check this code Plese send me the proper code if my code is not proper and also send next questions
31st May 2017, 3:51 PM
Pranjal soni
Pranjal soni - avatar
+ 2
Hi Pranjal, your code is good. However, you misunderstood my bonus offer. You need to define a function that counts how many times the user entered the wrong password(attempts.) Also, you have to manipulate the variable and add the symbol "!" to the string variable.
31st May 2017, 4:46 PM
AlexLSD
AlexLSD - avatar
+ 1
Will do, Pranjal :)
31st May 2017, 4:21 PM
AlexLSD
AlexLSD - avatar
+ 1
Alex, If there is proper code of your problem plese send me and post next problem also.
31st May 2017, 4:24 PM
Pranjal soni
Pranjal soni - avatar
31st May 2017, 10:36 PM
AlexLSD
AlexLSD - avatar
0
Hi Alex, Show this code hope it is right https://code.sololearn.com/ckXvS618oBpl/?ref=app
31st May 2017, 5:52 PM
Pranjal soni
Pranjal soni - avatar
0
I will send you an example s.code as soon as I come home.
31st May 2017, 6:28 PM
AlexLSD
AlexLSD - avatar