New PaaS service which lets you connect to your VM’s without exposing them over RDP/SSH. https://docs.microsoft.com/en-us/azure/bastion/bastion-overview
Hi all, here is a brief list of useful string methods. capitalize(). Makes the first letter of the string uppercase and all the rest lowercase, and returns the result. lower().
Hi, let us check the given string against a valid character list. There might be numerous way to do this. Here is a sample one. str_to_check = “1234-3*33?3+—-!” valid_chars
Hi, here is a kind of follow up for the 1st one. We, in this exercise , deal with leading space(s) , Boolean and punctuation. def average_word_length(my_string): space_sayisi = 0
Hi all, here are more examples for error handling. my_value = 10 try: print(1 / my_value) print(“No error occurred!”) except NameError: print(“A NameError occurred!”) except ZeroDivisionError: print(“A ZeroDivisionError occurred!”) except
Hi all, here are the samples for error handling with try/catch. my_value = “0” try: print(10 / my_value) except ZeroDivisionError: print(“Can’t divide by zero”) except: print(“Not possible”) When you run
Hi all, this a function usage sample and it aims to find average word count in a given string. We call word_count and letter_count functions in average_word_length function. That’s all 🙂
Hi, here is a sample for getting current date and print it. There are various string formating that you can choose regarding to your needs. In order to drop the