I need to go through a list that contains dictionaries and display the information for it. But testing here the attributes .item() and .value() could not. See:
#6.8 - Animais de Estimação:
Pets = [{'Zeus':{'Tipo':'Gato','Dona':'...
nota = -1
while nota < 0 or nota > 10:
nota = int(input("Informe a nota entre 0 e 10: "))
if nota < 0 or nota > 10:
print("Valor inválido")
I need to include in this validation code for, if the user types string (a,...
In some languages, you can join objetos/array to one.
For example, in PHP, I can join multiple arrays like this:
$userInfo = ['name' => 'Wallace']
$jobInfo = ['job' => 'Developer']
$ageInfo = ['age' => '26']
$info =...
In Windows CMD, you can use the ping command to get IP from certain sites, for example:
ping www.facebook.com.br
Is there any way to do something similar using Python 3.4?
In PHP, when we want to do array of letters of the alphabet, we can use the function range .
Example in PHP:
$letras = range('a', 'z');
Result:
Array (
[0] => a
[1] => b
[2] => c
[3] => d
[4...
I'm studying about sets ( set ) in Python because I'm going to use an algorithm to find paths in a graph, it's for a college discipline I'm having.
I created two assembly examples using two different notations. Look at the illustration...
I have two lists:
track_list = ['iphone 6', 'iphone 5', 'moto x2', 'galaxy s6']
tweets_data = ['Eu queria um iphone 6 sérião',
'nao gostei do moto x2',
'iphone 5 é coisa do passado']
I want to check if the...
The code will be used on 2 virtual testing machines (Linux and Windows).
The code below works, but every time I run a program, for example notepad , the prompt gets stuck until I quit the program.
How do I run multiple programs at...