Day-5 | Command Line Args & Env Vars | Most Simple Explanation
HTML-код
- Опубликовано: 18 авг 2024
- Support my work
www.buymeacoff... Hi Everyone, My Name is Abhishek and my channel is focused on delivering Free content on DevOps and Cloud. Follow my channel for practical learning of DevOps and Cloud. Don't miss the FREE DEVOPS, AWS and TERRAFORM PLAYLISTS.
Doubts Clearing
Group
www.youtube.co...
Instagram: / abhishekveeramalla_off...
GitHub Repo for this Course
github.com/iam...
Public Telegram Channel For Notes and Updates
t.me/abhishekv...
About me:
========
LinkedIn: / abhishek-veeramalla-77...
GitHub: github.com/iam...
Medium: / abhishekveeramalla-av
#devops #futureofdevops #kubernetes #sre #aws #azure
DEVOPS FAQ
DEVOPS
WHAT IS DEVOPS ?
WHY DEVOPS ?
HOW TO LEARN DEVOPS ?
LEARN DEVOPS IN 60 DAYS ?
NON IT TO IT BACKGROUND ?
IS DEVOPS EASY TO LEARN ?
BEST DEVOPS COURSE
FREE DEVOPS COURSE
#AbhishekVeeramalla
BEST DEVOPS VIDEOS
DEVOPS INTERVIEW QUESTIONS
EASY DEVOPS VIDEOS
BEST WAY TO LEARN DEVOPS
PYTHON FOR DEVOPS
PYTHON PROJECTS FOR DEVOPS
LEARN PYTHON
PYTHON PROJECTS FOR AWS
AWS PYTHON PROJECTS
AWS LAMBDA FUNCTIONS
WHAT IS GITOPS ?
WHY GITOPS ?
LEARN GITOPS ?
GITOPS FREE COURSE
What is AWS ?
LEARN AWS FOR FREE
AWS COURSE
AWS COURSE FOR DEVOPS
AWS CLI Deep Dive
Python
Learn Python from Basics
Python course
Simple Python Course
Python with examples
Python for DevOps .
.
Disclaimer: Unauthorized copying, reproduction, or distribution of this video content, in whole or in part, is strictly prohibited. Any attempt to upload, share, or use this content for commercial or non-commercial purposes without explicit permission from the owner will be subject to legal action. All rights reserved. Развлечения
I can't get such a Python class even if I pay lakhs of rupees, whoever agrees, like it. Thanks, ❤❤Guru Ji❤❤
Thanks 🙏
I think you are paid commenter😂😂😂
Today ...i was scrolling RUclips for Abhishek guruji video upload .....finally ....he uploaded ....Anyone who is eagerly waiting for the classes...like me ❤❤❤....hats off to you sir
Day 5 done AV, one day closer to hero! Thank you for all the hard work looking forward to further learning.
Thank you so much Abhishek garu. I am learning python series through your valuable explanation.
You are most welcome
gr8 explanation. completed CLA & env vars.Thanks.
Great 👍
This is an excellent job if explanation.
😍
Fantastic tutorial
Thank you Abhishek
Welcome
great video thanks @abhishek :)
day 5 notes not available . for command line args please update
I like your teaching
Hi Abhishek, Awesome video. what is the life time of this environmental variable? I think this will be limited to that terminal session only right?If we close the session, wont work right?
Thank You ❤
hii Abhishek Can you Please start teaching go lang it will so helpful
❤❤❤❤
😍😍
assignment which is given by you the code is
import sys
def addition(num1, num2):
add = num1 + num2
return add
def sub(num1, num2):
s = num1 - num2
return s
def mul(num1, num2):
m = num1 * num2
return m
num1 = float(sys.argv[1])
operation = sys.argv[2]
num2 = float(sys.argv[3])
if operation == "add":
output = addition(num1, num2)
elif operation == "sub":
output = sub(num1, num2)
elif operation == "mul":
output = mul(num1, num2)
else:
print("Invalid operation")
print(output)
Great job
@@AbhishekVeeramalla line 15, in
num1 = float(sys.argv[1])
~~~~~~~~^^^
IndexError: list index out of range...i'm getting the above error ..help me out..
@@RamkiranSM maybe you didn't pass any argument while you tried to run your program
Thank you bro ❤
Welcome 😊
❤❤❤
When injecting env variables using 'export' cmd locally for a CICD pipeline running on a remote resource, does the secret is still available?
thankyou sir
If we've 100+ passwords, we can't run the export commands 100times right ? and also the passwords vary from env to env, means dev,test,pre-prod,prod each env have different different password and we're running pipelines on Azure DevOps(Microsoft-hosted Agents)...in that case what's the efficient approach ?
Nice sir
the sir readme file is empty could u pls update itt
Hi Abhishek are you going to cover pandas also
No
Thanks sir but it is actually day5 . Could you update the title
Updated
In 199/month will we get access to same public telegram channel in about section along with badges or any separate telegram channel.
Seperate .. that is a doubt clearing telegram group
thank you bro!
import sys #to import the sys module
def add(num1, num2):
add = num1 + num2
return add
def sub(num1, num2):
sub = num1 - num2
return sub
def mul(num1, num2):
multi = num1 * num2
return multi
def div(num1, num2):
div = num1 / num2
return div
num1 = float(sys.argv[1]) #to read command line argument of num1
operation = sys.argv[2]
num2 = float(sys.argv[3]) #to read command line argument of num2
if operation == "add":
output = add(num1, num2)
print(output)
if operation == "mul":
output = mul(num1,num2)
print(output)
if operation == "sub":
output = sub(num1,num2)
print(output)
if operation == "div":
output = div(num1,num2)
print(output)
🚀
Hi @abhishek where is Day6 video??
Check now
Hi Abhishek, I need to talk to you. Is it possible?
import sys
def add(num1, num2):
add = num1 + num2
return add
def sub(num1, num2):
if num1 > num2:
sub = num1 - num2
return sub
else:
sub = num2 - num1
return sub
def mult(num1, num2):
mult = num1 * num2
return mult
def dev(num1, num2):
dev = num1/num2
return dev
num1 = int(sys.argv[1])
operation = sys.argv[2]
num2 = int(sys.argv[3])
if operation == "add":
output = add(num1, num2)
print(output)
elif operation == "sub":
output = sub(num1, num2)
print(output)
elif operation == "mult":
output = mult(num1, num2)
print(output)
else:
output = dev(num1, num2)
print(output)
Hi Abhishek!! Even after deleting environment variable it reappears everytime when the program rerun... I am not setting it inside the program and i am testing finding env var after deletion it shows false, it means deletion is successful. Then why it reappears after rerun of program @abhishek.veeramalla
Abhishek, could you pls share me 6 to 7yrs resumes for devops pls
Its there on our telegram channel. Take that
Brother I have a 100 resumes specially for devops experienced engineer with projects added and everything is added ......ping me if u want
From 3yrs to 13 yrs experienced
@@praveenkumar-star bro can you call me bro or give your no bro
@@praveenkumar-star how to ping u