Question

How can I change my username so that the getuser Python output is different? I am...

How can I change my username so that the getuser Python output is different? I am using a windows pc

import datetime
import getpass
print("\n\nFinished execution at ", datetime.datetime.now())
print(getpass.getuser())

Homework Answers

Answer #1

ANSWER (AS PER WINDOWS 10)

STEP 1 :- OPEN WINDOWS START MENU AND GO TO SETTINGS.

STEP 2 :- CLICK ON ACCOUNTS -> MANAGE MY MICROSOFT ACCOUNT.

NOTE:- MICROSOFT ACCOUNT WEBPAGE WILL OPEN ON YOUR BROWSER.

STEP 3 :- CLICK ON MORE ACTIONS -> EDIT PROFILE (FROM DROP DOWN MENU).

STEP 4 :- EDIT NAME (UNDER YOUR CURRENT ACCOUNT NAME)

STEP 5:- NOW ENTER FIRST AND LAST NAME AND SAVE.

RESTART YOUR PC TO SEE THE EFFECT.

NOW YOU CAN AGAIN RUN THE PYTHON CODE AND YOU WILL GET THE NEW USERNAME THAT YOU HAVE ASSIGNED.

##### FOR ANY QUERY, KINDLY GET BACK, THANKYOU. #####

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
I am trying to print an essay in my python code but the words keep getting...
I am trying to print an essay in my python code but the words keep getting cut over two lines. How can i fix this using python code so that it is formatted nicely? thanks
I am a student taking python programming. Can this problem be modified using the define main...
I am a student taking python programming. Can this problem be modified using the define main method, def main()? import random #function definition #check for even and return 0 if even def isEven(number): if(number%2==0): return 0 #return 1 if odd else: return 1 #count variables even =0 odd = 0 c = 0 #loop iterates for 100 times for i in range(100): #generate random number n = random.randint(0,1000) #function call val = isEven(n) #check value in val and increment if(val==0):...
First issue: a) I am trying to create a SQL query so i can list all...
First issue: a) I am trying to create a SQL query so i can list all the items that a user has bought b)I am trying to show how much it will cost in total for user My tables: Table user(user_id, username, shipping_address) Table item(item_id, item, pricing) Table receipt(r_id, user_id, date_current) Table rDetailing(r_id, item_id, item_in, amount_of_item)
Using Python (pandas as pd) I am trying to use the split, apply, combine method but...
Using Python (pandas as pd) I am trying to use the split, apply, combine method but am getting an "invalid syntax" error at the end of the line that says "for days_name, days_df in grouped_by_day" I declared grouped_by_day in the split function but did not get any errors so I am not sure what happened or how to fix it. Below is a copy of the split, apply, combine section of my code. mean_data_ser = pd.Series() #split grouped_by_day= days_df.groupby("Day of...
In python: I am trying to construct a list using enumerate and takewhile from a Fibonaci...
In python: I am trying to construct a list using enumerate and takewhile from a Fibonaci generator. So far the code I have is the following: def fibonacci(): (a, b) = (0, 1) while True: yield a (a, b) = (b, a + b) def createlist(n, fib): return [elem for (i, elem) in enumerate(takewhile(lambda x: x < n, fib)) if i < n] I only get half the list when I do: print(createlist(n, fibonacci())) Output: [0, 1, 1, 2, 3,...
Python Function: How to format phone number "9293827827" to "(929) 382-7827 in python. My code so...
Python Function: How to format phone number "9293827827" to "(929) 382-7827 in python. My code so far: phone_number = input("Enter phone number (numbers only): ") phone_number_formatted = ?????? print(phone_number_formatted)
how can my organization and I use different approaches to more effectively manage change?
how can my organization and I use different approaches to more effectively manage change?
So for one of my classes I am updating the game Minesweeper. So for the game...
So for one of my classes I am updating the game Minesweeper. So for the game I was wanting to change the size of the grid based on user preference. I am new to working with tkMesseageBoxs. I am trying to update the variable SIZE_X and SIZE_Y with the tkMeassage box. Size_x and Size_y control the size of the grid. For the first one I tried assigning it to the variable a and b. For the other variables I was...
I am working on exercise 5.30 from Introduction to Computing using python (Author: Perkovic). I was...
I am working on exercise 5.30 from Introduction to Computing using python (Author: Perkovic). I was looking at the solution and was able to understand what to do. However, when I implement the temp function as indicated, I keep getting this error "ValueError: the first two maketrans arguments must have equal length". However, it seems my two arguments are equal length, so I'm not sure what I am doing wrong! print('Exercise 5.30') def many(file): infile = open(file) content = infile.read()...
Why is my buffer too small? I am compiling a word-definition class and I am having...
Why is my buffer too small? I am compiling a word-definition class and I am having some problems. I am producing an output but I cannot insert another word definition pair without having an error that states: "Buffer is too small". With the output I am producing, I am able to insert a pair(a word and its definition) until the error occurs. When I have searched up the variables I used to add the word and its definition through C++(I...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT