<jupyter_start><jupyter_text>Hello everyone and welcome for the first tutorial in python We will work in different steps:__1.Variables__  __2.Loops__  __3.Conditions__ The variables haven't got type in python, whereas in  C we have to declare the type of variable ( int var ;),  it's an integer, int is considered as an integer  1.Variables<jupyter_code>variable =1 #integer
variable_string = "titi" # string
variable_float = 3.92<jupyter_output><empty_output><jupyter_text>To display the variable in the terminal we use: print() But people prefer and advise to use loggings mainly for bugs, and errors of code. We will see logs in another tutorial.<jupyter_code>print(variable)
print(variable_float, " abcd " , variable_string) ### You can concatenate some data: string with float, etc...<jupyter_output>1
3.92  abcd  titi<jupyter_text>2.Loop  We will see the loop for and while. The loop in general can iterate the same code some times<jupyter_code>variable = 0
for i in range(0,11):
    variable +=1
print(variable)<jupyter_output>11<jupyter_text>You can see  variable has the value 0 and we add for each iteration (+1), we can do the same with while loop<jupyter_code>variable = 0

while(variable<11):
    variable+=1
print(variable)<jupyter_output>11<jupyter_text>In this case we introduce the notion of condition because the while loop do the iteration if variable is lower than 11 when it's equal, the programme stop.  3.Conditions<jupyter_code>variable = 2
variable_float = 2.01
if variable <= variable_float:
    print("Bigger")
else:
    print("Smaller")<jupyter_output>plus grand
{'fraction_non_alphanumeric': 0.07610062893081761, 'fraction_numerical': 0.0220125786163522, 'mean_word_length': 5.389558232931727, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '581700', 'license': 'MIT', 'n_tokens_mistral': 506, 'n_tokens_neox': 484, 'n_words': 192, 'path': 'Basics1_Python.ipynb', 'repo_name': 'SylvainVerdy/Basics_Python', 'size': '1590'}