I teamed up with Max for this project, and the process was easy as Black Jack is not hard to play and create . As strengths I saw ways to shape better the project so it would look better, but my weakness is that I didn´t know how to play it so Max was behind …
Author Archives: robertomr30
#Mastery20
File Input/Output It is similar to call function, but you coppy all or specific parts of the document you are opening. Example: Reading specific parts: The number 15 in parenthesis if for the number of characters that you want to be printed. References: https://www.w3schools.com/python/python_file_open.asp
#Mastery21
Dictionaries Dictionares are useful when you want to print or call information from a certain thing that you previously created. Simple example: Or also make loops: References: https://www.w3schools.com/python/python_dictionaries.asp
#Mastery 19
Validated user input Validating what the user writes can be more simple than what you think. Here´s an example, and you will notice that you have been doing it without knowing: Ask you can see it is what you´ve been doing all the time when codying a program. Here is another example: References: https://stackoverflow.com/questions/23294658/asking-the-user-for-input-until-they-give-a-valid-response
#Mastery18
Strings Strings are literally word or sentences used when codying in python. it is important to rebember that you have you use «…» to write string correctly. PRINTING STRINGS ASSIGN STRING TO A VARIABLE MULTILINE STRINGS References: https://www.w3schools.com/python/python_strings.asp
#Mastery17
Lists and Tuples It is common to confuse both as they can be used to store a collection of items, but there is a difference. Lists are mutables and tuples are immutables. Examples. Lists: As you can see it is ordered as you wrote it. In this case you can see that we you write …
#Mastery16
Which repetition? Now that you know the repetition codes do you feel confused about which one to use?, in this post you will see the correct use of each. While It will execute a set of statements as long as the condition is true, but it requires relevant variables to be ready For Is used …
#Mastery15
Recursion Is a code in which a function calls itself one or more times in its body, usually returning the value of the function call. There is not an exact formula for this codding way but here are some examples: Strings: Notice that you first write the «complement» of the main phrase and then you …
#Mastery14
For This is a similar loop, that can be replaced for the while loop. Steps to follow 1.-Make a string variable 2.-Follow the code: «for (variable 2) in (variable 1):» 3.-Write the action you want to do Example: If you want to stop just add an «if statement» an then «break»: Now, if you want …
#Mastery13
While The while loop executes a set of statements as long the conditions are true. The code is: while (condition): *NOTE: REMEMBER TO INCREMENT I OR THE LOOP WILL CONTINUE FOREVER* If you want to stop the loop even when the statement is correct you use «break». References: https://www.w3schools.com/python/python_while_loops.asp