-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathP3.py
80 lines (47 loc) · 1.36 KB
/
P3.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
'''TIPOS DE DATO'''
# Tipo de dato entero
var_entero_positivo=5
var_entero_negativa=-5
# Si queremos imprimir lo hacemos con la función print
# alt + z, alinea el textoy el código.
# print(var_entero_positivo)
# Función dir(), nos ayuda a recordar todos los métodos de un objeto o tipo de dato.
# print(dir(var_entero_positivo))
# -------------------------------------
# Tipo de dato: String
var_user= 'jhomar'
# print(dir(var_user))
# Método upper()
var_user_upper=var_user.upper()
print(var_user_upper)
var_user_lower=var_user_upper.lower()
print(var_user_lower)
print("#"*50)
var_username= "jhomar astuyauri"
print(var_username)
var_username_new=var_username.replace("jhomar","cristian")
print(var_username_new)
# Tipo de dato
var_1=5
var_2=5.5
var_3='holi'
# Función type()
print(type(var_3))
# Convertir tipos de datos:
var_1_new=float(var_1)
print(var_1_new)
# Tipo de dato Booleano
var_100= True
var_200= False
'''
**git init // Inicializar git en nuestro computador.
git add . //Agregar nuestro código en un archivo fantasma.
git status //Nos ayuda a saber el estado de nuestro archivo.
git commit -m "first commit"//Hacer un comentario
**git remote add origin https://github.com/Jhomar1158-ux/Kali-Team.git
git push -u origin main
---
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
'''
print("Holitas")