Visual Studio Code – How To Decrease Width Of Line Number
In this Visual Studio Code tutorial we will learn how to decrease the width of line number in Visual Studio Code editor.
In this Visual Studio Code tutorial we will learn how to decrease the width of line number in Visual Studio Code editor.
In this WordPress tutorial we will learn how to register a new image size in WordPress.
WordPress has few default sizes for images, like thumbnail, medium, large, full. When you upload an image, it will automatically create additional images to these sizes.
You can create additional image size as per your need. Like you may need new image size to use as featured image on homepage.
Follow below steps to create a new image size and use it as featured image.
In this WordPress tutorial we will learn how to include custom category or taxonomy term in url of custom post type.
Let's say we have a custom post type course. And we also have a custom taxonomy subject for this post type.
Let's create a custom content type course. Add below codes in functions.php file of your theme.
In this WordPress tutorial we will learn how to print / display terms of a custom taxonomy or WordPress default category in hierarchical order and reverse hierarchical order in single post.
In this WordPress tutorial we will learn how to print single post taxonomy terms in hierarchical order. This taxonomy can be default WoordPress post category or custom taxonomy.
In this python tutorial, we will create a small game. User will be asked to guess a single digit number (0-9). User will be allowed to guess maximum 3 times.
If the guessed number is correct, it will show congratulation message. If user failed to guess the right number in maximum 3 tries, he will get message that he has guessed maximum times and will also show the right number.
weight_pound = input("what is your weight in pound? ")
weight_kg = int(weight_pound) * 0.45
print("Your weight in KG is " + str(weight_kg))
In Python + is used as concatenation operator. By default, Python supports string concatenation using + operator. And if you try to concatenate string and integer using + operator, it will throw some runtime error.