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 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)
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?
In Python (using pandas and numpy) I am trying to clean CSV data so it adheres...
In Python (using pandas and numpy) I am trying to clean CSV data so it adheres to a strict coding system instead of free response. More specifically, how would I code a simple rule based system to handle the various spellings and word choices that represent the following statuses: Never married Divorced Married Widowed Separated
I am dreaming about the day when I can visit my friends again. If I have...
I am dreaming about the day when I can visit my friends again. If I have 15 different teas at home, how many ways can I bring up to 3 different kinds to serve at a get together? Show your calculations.
Just so I am not using up all my remaining question limit, here is a screenshot...
Just so I am not using up all my remaining question limit, here is a screenshot link of my questions http://prntscr.com/8os0cy
Python #Imagine you're writing a program to check if a person is #available at a certain...
Python #Imagine you're writing a program to check if a person is #available at a certain time. # #To do this, you want to write a function called #check_availability. check_availability will have two #parameters: a list of instances of the Meeting class, and #proposed_time, a particular date and time. # #check_availability should return True (meaning the person #is available) if there are no instances of Meeting that #conflict with the proposed_time. In other words, it should #return False if proposed_time...
Looking at my answers, I was am always off buy about range of .1 to .4...
Looking at my answers, I was am always off buy about range of .1 to .4 from the correct answer that is stated. I am having a really tough time trying to figure out how to get my number to be exactly like what is shown as correct so I need a little help with figuring out what I am doing wrong. Here is an example of a question I just cant seem to figure out. I'll show all my...
I am working on my semester project for fundamentals on web design. I am stuck on...
I am working on my semester project for fundamentals on web design. I am stuck on the question. It says I need to use the drawing features of word processing program, a graphic application, or a paper and pencil to create a site map for your website that shows the hierarchy of pages and reltionships between the pages. So I am kinda of confused how to do to that
So I am having a really hard time on my investments homework. I would be grateful...
So I am having a really hard time on my investments homework. I would be grateful to just see examples like these so that I understand how to do them. My textbook is no help. 2.         XYZ stock traded last at $30.00 per share. Provide an example of a buy limit order that you might place, and indicate how it would work.         b.    Suppose you bought XYZ's stock at $30.00 per share. Explain the stop order that...